Stop ignoring asserts when running in optimized mode

I think this is mostly about educating people about when to use assert and why its usually better to use regular if-statements for checks which are not assertions (ie. not checking invariants).

IMO, the topic’s suggestion is going in a wrong direction: It tries to avoid educating people by making assert behave just like a regular if-statement.

5 Likes