>> 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

-- 
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

Reply via email to