Go and generic programming on reddit, also touches on D

dsimcha dsimcha at yahoo.com
Sun Sep 18 13:19:24 PDT 2011


On 9/18/2011 4:09 PM, Andrei Alexandrescu wrote:
> opDollar is more powerful because it can be made to work with infinite
> ranges.
>
> Andrei

Yes, this is important.  IMHO, though, the default behavior of the $ 
operator should be to call range.length if it exists and opDollar isn't 
explicitly overloaded.  This would save a lot of boilerplate.


More information about the Digitalmars-d mailing list