Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Clojure assertions, including preconditions?

What are some good ways to disable Clojure assertions (including preconditions and postconditions) in the REPL? For an arbitrary Leiningen profile?

like image 824
David J. Avatar asked Oct 26 '25 01:10

David J.


1 Answers

Per https://github.com/technomancy/leiningen/blob/b82b228/sample.project.clj#L291

Set :global-vars to {*assert* false} in your profiles.clj.

You can put the above setting in whatever Leiningen profiles you want.

like image 101
David J. Avatar answered Oct 28 '25 19:10

David J.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!