Re:The Compiler Is Your Best Friend, Stop Lying to It
by addaon on Thursday January 01, 2026 @01:20PM
(#46456540)
Anyone writing with a standard that requires 100% decision-point coverage will either not write that code (because NDEBUG is insane and assert should have useful semantics), or will have to both write and test that code.
I don't think any C programmer (where assert() is just debug_assert!() and there is no assert!()) is writing code like:
They just assume that the assertion holds and hope that some thing would crash later and provide info for debugging if it didn't.