Performance penalty for using ranges

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Aug 25 14:17:48 PDT 2013


On 8/25/13 12:46 PM, Joseph Rushton Wakeling wrote:
> On 25/08/13 21:10, monarch_dodra wrote:
>> It never clashes untill you nest two foreach, and then you have to use
>> __ ...
>>
>> foreach( _ ; 0 .. M)
>>      foreach( __ ; 0 .. N)
>>          ...
>>
>> I have an enhancement request to simply allow anonymous iteration:
>> foreach( ; 0 .. N)
>>
>> http://d.puremagic.com/issues/show_bug.cgi?id=9009
>
> Good call. :-)

I don't see why the excitement around anonymous bindings. It's a rare 
case and it's not like we're running out of symbols, particularly given 
they're by definition written only once :o).

Andrei



More information about the Digitalmars-d mailing list