On Iteration

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Nov 10 15:55:50 PST 2009


Bill Baxter wrote:
> 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

For one thing I couldn't even see the article on the "Programming" page 
after only a few hours after posting. I guess if it doesn't stay there 
for a couple of hours after posting to get primed, it never buoys to 
attention.

Andrei



More information about the Digitalmars-d mailing list