System property to set the value of *assert*

Description

Originally asked at https://ask.clojure.org/index.php/9071/would-awesome-have-system-property-set-value-assert-clojure

In clojurescript we have `:elide-asserts` option that allows at compile time specify if i want to enable asserts or disable. Clojure has similar mechanism with the *assert* var but misses the way to set it before execute/evaluate any other code. I know, with tool.deps, you have the -e "(set! *assert* false)" but this only works if you are using tool.deps to start your application (pretty common on development but not so common on production). Another precedent is the `clojure.spec.check-asserts` system property, that only works for clojure.spec. Would be awesome to have a similar system property to the `clojure.spec.check-asserts` for specify the value for *assert* var.

Environment

None

Assignee

Unassigned

Reporter

Alex Miller

Labels

Approval

Triaged

Patch

None

Priority

Major
Configure