Feasible Idea?: Range Tester

John Colvin john.loughran.colvin at gmail.com
Thu Mar 21 11:46:08 PDT 2013


On Thursday, 21 March 2013 at 18:19:00 UTC, Jonathan M Davis 
wrote:
> I could definitely see an argument for adopting the
> policy of having popFront throw RangeError when the range is 
> empty.
>
> - Jonathan M Davis

In release mode, assert expressions are removed. This would not 
be possible for throwing a RangeError, preventing a useful 
optimisation in well tested code.


More information about the Digitalmars-d mailing list