On Iteration

Bill Baxter wbaxter at gmail.com
Tue Nov 10 06:59:31 PST 2009


On Mon, Nov 9, 2009 at 6:17 PM, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> wrote:
> 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
>

I'm not sure why this one is staying so far under the radar.  Just
marketing?  The title of the previous reddit story "Iterators must
die" got a lot more attention.  I'd hate to think it just comes down
to picking deliberately inflammatory titles.

--bb



More information about the Digitalmars-d mailing list