On 8/3/2014 4:24 PM, Martin Krejcirik wrote:
Couldn't this new assert behaviour be introduced as a new optimization
switch ? Say -Oassert ? It would be off by default and would work both
in debug and release mode.

It could, but every one of these:

1. doubles the time it takes to test dmd, it doesn't take many of these to render dmd untestable

2. adds confusion to most programmers as to what switch does what

3. adds complexity, i.e. bugs

4. interactions between optimization switches often exhibits emergent behavior - i.e. extremely hard to test for

Reply via email to