Why I chose D over Ada and Eiffel

John Colvin john.loughran.colvin at gmail.com
Thu Aug 29 07:43:09 PDT 2013


On Thursday, 29 August 2013 at 14:37:10 UTC, bearophile wrote:
> Joseph Rushton Wakeling:
>
>> Is the invariant() not going to be stripped out at compile 
>> time if you use -release ?
>
> Right. assert is enough there. Use enforce() only in special 
> cases, when you need it. Better to minimize the usage of 
> enforce() in library code that has to be called many times.
>
> Bye,
> bearophile

fair point. I had forgotten that invariant would be stripped out 
anyway.


More information about the Digitalmars-d mailing list