1.3.0 permalink Arrow_down_16x16

comment

clojure.core

  • (comment & body)
Ignores body, yields nil

1 Example top

  • ;; The commented forms do not get executed
    user=> (comment
             (functioncall-1)
             (functioncall-2))
    nil
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:4161 top

(defmacro comment
  "Ignores body, yields nil"
  {:added "1.0"}
  [& body])
Vars in clojure.core/comment:
Used in 0 other vars

Comments top

1 comment(s) for comment.

it doesn't 100% ignore the body. If your comment has a map in it, for example, and that map isn't 100% correct it will fail to compile in some environments. I found that using Light Table. I am certain it would fail on other platforms that won't know to exclude it before parsing.

Example: (comment here is some TeX: \frac{\sum_{m=1}{m}x{m}}{x{s}} )

That will produce an error.

Log in to add a comment.