On Mon, Aug 16, 2010 at 16:33, Rasmus Svensson <r...@lysator.liu.se> wrote: >>> 2. multiline comments like java >>> >>> /* this is a >>> multiline comment */ >> >> I don't know. >> > > Comment blocks are usually done by starting each line with ;; > > ;; this is > ;; a comment > ;; block > (some-code) > > Anything after a ; is a comment, like python's #. There is a > convention for how many ;s to begin the line with. (Basically ; for > same line comments, ;; for comments above code and ;;; for top-level > comments not commenting on the form below) > > There is also the (comment ...) form that disregards the containing > forms. Note that the contents has be well-formed clojure code > (matching parentheses, etc). > > (comment ; Usage examples > (foo 1 2 3) > (bar :a :b :c)) > > // raek >
There's also the reader-macro #_, which causes the next form to be ignored. If you were feeling especially perverse, you could use it to simulate a mult-line comment: #_"I have an editor which is too simple to help me with comments and my right pinky is too tired to type all those semicolons." ;-) // Ben -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en