3 ms·
Agree. isDebugEnabled() method is used to scare people since 2001, probably around the time when it came out of common use. Macro that is being used for exact
by smikhanov 17y ago
Agree.
isDebugEnabled() method is used to scare people since 2001, probably around the time when it came out of common use.
Macro that is being used for exactly that is not a distinguishing feature of the language. Java proponents may come out with, say, accessing array in constant time (how many car/cdr pairs you need for that?)
Important is that neither of the described facts add something to the value of one language against another and usually serve only as a basis for speculation.
Edit: when I'm saying "went out of common use", I mean that elegant alternatives like
logger.log("Expensive calculation is going to be: {0}", objectWithExpensiveToStringMethod);
have emerged.