On Iteration

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Nov 9 18:17:17 PST 2009


dsimcha wrote:
> == Quote from Andrei Alexandrescu (SeeWebsiteForEmail at erdani.org)'s article
>> I consider changing a bit D's range model following the better
>> understanding reflected in this article:
>> http://erdani.com/publications/on-iteration.html
>> If you have any thoughts and if you can help with the implementation,
>> please let us know.
>> Andrei
> 
> Can you detail a little more what you're proposing?  I read your article this
> morning, though admittedly I skimmed over some of the examples that looked like
> things I had already been using in my code since ranges were released.  The only
> thing I noticed was the save() function for forward ranges.  This resolves the old
> wart that input ranges vs. forward ranges are strictly a convention, and I think
> it's a good idea.  Other than that, again, please distill what you're proposing.

One is indeed save(), the other is separation of iteration from access. 
These are the only major changes. The second is quite hefty.

BTW, just saw on the announce group that the article was reddited - 
please vote up: http://www.reddit.com/r/programming/comments/a2hv3/


Andrei



More information about the Digitalmars-d mailing list