3 ms·
>(and thus needed no assertions) Assertions are not meant to be needed. Any bug-free programm should behave exactly the same with and without assertions. On t
by wongarsu 10y ago
>(and thus needed no assertions)
Assertions are not meant to be needed. Any bug-free programm should behave exactly the same with and without assertions.
On the other hand, in any sufficiently complex algorithm, asserting the pre- and postconditions generally helps readability, maintainablilty and correctness.