A better assert() [was: Re: std.unittests [updated] for review]

bearophile bearophileHUGS at lycos.com
Fri Feb 4 04:16:56 PST 2011


> Removing the two purposes (moving them to specialized and explicit features, specialized little tools)

I want to stress the fact that moving those two unrelated sub-features away from assert into specialized features is not going to increase the language complexity, because those features are _already_ present and programmers need to remember them already. But currently they are hidden, half-invisible, and they interact badly with other things. So moving them into explicit little features makes the language more explicit, more readable and helps to remove warts, it doesn't make the language more complex (it may just increase front-end compiler complexity a bit).

Bye,
bearophile


More information about the Digitalmars-d mailing list