5 ms·
"And I'm pretty happy with its design considering its age." Java did the right thing for assertions but then completely failed for the analoguous issue when it
by weinzierl 5mo ago
"And I'm pretty happy with its design considering its age."
Java did the right thing for assertions but then completely failed for the analoguous issue when it comes to logging.
I admit that logging is more complex because you often want it configurable dynamically at runtime. But I'd argue that the language should not be in your way if all you need is a compile time decision and the contortions we made for logging to stay low cost when nothing is logged are crazy in Java.
- layer8 5mo agoIf you want, you can actually use assert for conditional logging (and other conditional program logic).