store/[org.clojure/clojure "1.8.0"] clj::clojure.core/*'

Community Documentation


The `comment' form is rarely used due to the fact that the reader retains the form, and it affects the evaluation of the program. Contrast this with the `#_' reader macro, by which the comment is completely removed before evaluation.

For example, let's say you want to comment out the call to "bar" in:

(defn foo [] 1) (defn bar [] 2) (defn baz [] 3)
(+ (foo) (bar) (baz)) ;= 6

The following will return a NullPointerException:

(+ (foo) (comment (bar)) (baz))

However, the #_ reader macro works fine:

(+ (foo) #_(bar) (baz)) ;= 4


(defn *'
  "Returns the product of nums. (*') returns 1. Supports arbitrary precision.
  See also: *"
  {:inline (nary-inline 'multiplyP)
   :inline-arities >1?
   :added "1.0"}
  ([] 1)
  ([x] (cast Number x))
  ([x y] (. clojure.lang.Numbers (multiplyP x y)))
  ([x y & more]
   (reduce1 *' (*' x y) more)))

Uses on crossclj