查看clojure.test
源代码,我发现了以下内容:
(defonce ^:dynamic
^{:doc "True by default. If set to false, no test functions will
be created by deftest, set-test, or with-test. Use this to omit
tests when compiling or loading production code."
:added "1.1"}
*load-tests* true)
defonce
阻止重新定义(即使用)标记为 var 的背后有什么好处或理由^:dynamic
吗?