3 ms·
Just 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
by groby_b 2y ago
Just 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.