Skip to content

clojure.core/comment

View this page on ClojureDocs

Type: macro Added: Clojure 1.0 Examples: 4 Runnable: 1
([& body])

Ignores body, yields nil

Examples

by gstamp on
by jafingerhut on . May have evaluation errors.
by fordsfords on . May have evaluation errors.
by loeschzwerg on . May have evaluation errors.

Note by Pete

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.


Content from the matching ClojureDocs page, with authors credited on each contribution.