DIP 1006 - Preliminary Review Round 1
Timon Gehr
timon.gehr at gmx.ch
Tue Mar 6 08:45:44 UTC 2018
On 06.03.2018 03:05, Walter Bright wrote:
> On 3/5/2018 2:30 PM, John Colvin wrote:
>> This just feels bad. Adding extra failsafes for my debug program
>> shouldn't make my release program less safe.
>
> Then use `enforce()`.
That makes no sense at all. Enforce is for conditions that are expected
to fail in exceptional circumstances. It does not document the same
intent as assert does and it cannot be ignored in release builds.
Anyway, "do not use assert" is not the solution, as I have explained
many times now.
More information about the Digitalmars-d
mailing list