clojure-style-guide icon indicating copy to clipboard operation
clojure-style-guide copied to clipboard

Mention the comment macro

Open mishadoff opened this issue 11 years ago • 1 comments

Sometimes it useful to comment out multiple lines. That can be done with the comment macro:

(comment
  (some-code-1)
  (some-code-2)
  (some-code-3))

Maybe it's worth to mention that in style guide.

mishadoff avatar Mar 15 '13 08:03 mishadoff

I think it's more important to mention the difference between #_ and comment and the fact that comment will actually return nil, which might break some code.

bbatsov avatar Jun 04 '14 09:06 bbatsov