dynamic var | since v1.7.10 | Edit |
Internally used to remove all calls to assert
when the compiler
option :elide-asserts
is set to true. Not to be used
manually.
This variable cannot be set at runtime in JVM ClojureScript, but can be in self-hosted ClojureScript.
The following only works in self-hosted ClojureScript:
(assert (= 1 2))
;; Error: Assert failed: false
(set! *assert* false)
(assert (= 1 2))
;;=> nil
(def
^{:dynamic true}
*assert* true)