2 ms·
> blowing up production. I prefer what Java does: Assertions are disabled at runtime by default, however you can turn them on without requiring a different cod
by Terr_ 3y ago
> blowing up production.
I prefer what Java does: Assertions are disabled at runtime by default, however you can turn them on without requiring a different code-release and you can even do it for specific packages/classes.
So you might even use them in production: If feature X is already failing in some bizarrely uninformative way, turning on assertions in relevant code may provide you a better hint to what's going awry.