For example I have expression like this
if (DEBUG) log.debug("hello")
Is there a way in scala or java to initiate DEBUG
variable in such way, so that if it is false
whole expression is removed in runtime?
My guess that branching will be removed by JIT in runtime, but is it? Is there a way to “give a hint” to JIT to do it?
6