Are iterators and ranges going to co-exist?

Peter Alexander peter.alexander.au at gmail.com
Sat Jul 24 06:46:09 PDT 2010


On 24/07/10 2:13 PM, Jim Balter wrote:
>
> "Peter Alexander" <peter.alexander.au at gmail.com> wrote in message
> news:i27p32$dtt$1 at digitalmars.com...
>> On 21/07/10 6:33 PM, Andrei Alexandrescu wrote:
>>> Peter Alexander wrote:
>>>> == Quote from Walter Bright (newshound2 at digitalmars.com)'s article
>>>>> If some algorithms used ranges and others used iterators, the
>>>> poor programmer
>>>>> would find himself then obliged to implement both interfaces for
>>>> each container.
>>>>
>>>> This makes no sense.
>
> Er, um, perhaps you have never written a container class and don't know
> what "implement an interface" means?

I have written plenty.

Care to elaborate?


More information about the Digitalmars-d mailing list