3 ms·
If you're going to offer unsupported FUD, I would prefer you direct the FUD at NDEBUG and the fear that it could have disabled a load-bearing assertion.
by jeffbee 2y ago
If you're going to offer unsupported FUD, I would prefer you direct the FUD at NDEBUG and the fear that it could have disabled a load-bearing assertion.
- wombatpm 2y agoLoad bearing assertions. Even Design by Contract in Eiffel turns off assertions in production.
- groby_b 2y agoJust because it's turned off by default doesn't mean it isn't load bearing. If you didn't ever encounter an ASSERT with side effects that were crucial to proper functioning, you just haven't seen enough ASSERT statements. Rule #1 of programming: If it can go wrong, it will.
- eru 2y agoAlso, you might just run into a new bug, and the assert might caught it, and at least told you about the bug.
- fc417fc802 2y agoThat's before we even consider instances where assert was used to check a condition that should always be verified. In my personal projects I define a "require" macro that I use liberally.
- ergonaught 2y agoIf acknowledging my opinion was dated based on older experiences constitutes “unsupported FUD”, well, have fun with the life experiences that attitude produces for you.