assert semantic change proposal
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Tue Aug 5 17:50:04 PDT 2014
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
More information about the Digitalmars-d
mailing list