We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
I agree with that. However, it would be nice to make it configurable, similarly to the way javac does. Something like this:
val assertionsEnabled = getClass().desiredAssertionStatus() @inline def assert1(prop: => Boolean, msg: => Any): Unit = { if (assertionsEnabled && !prop) throw new java.lang.AssertionError(msg) }