How do I comment multiple lines in Clojure?
+4
A:
Clojure supports a #_
reader macro which completely skips the next form. This is mentioned on the page about the Clojure Reader. There is also the comment macro which has a similar effect, but is implemented differently.
Both the above require that the thing that you're commenting out is otherwise a syntactically correct S-expression.
Some Lisp dialects have a multi-line comment that can contain arbitrary text, but I don't see one for Clojure.
Greg Hewgill
2009-07-28 02:25:43
I thought id miss my #||# but this is way better.
kunjaan
2009-07-28 02:35:43
I hope you're having fun with Clojure. :)
Rayne
2009-07-28 02:37:23
+3
A:
See this link: http://en.wikibooks.org/wiki/Clojure_Programming/Tutorials_and_Tips
You can create multiline comments with the syntax
(comment .....
....)
chollida
2009-07-28 02:30:34