Block Comments in Clojure

后端 未结 9 1450
渐次进展
渐次进展 2021-01-31 01:13

How do I comment multiple lines in Clojure?

9条回答
  •  春和景丽
    2021-01-31 01:34

    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.

提交回复
热议问题