Are iterators and ranges going to co-exist?

Jim Balter Jim at Balter.name
Sun Jul 25 13:51:16 PDT 2010


"Peter Alexander" <peter.alexander.au at gmail.com> wrote in message 
news:i2eqf1$1i69$1 at digitalmars.com...
> 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?

Sure: you wrote as if Walter were referring to the user of the container 
class, whereas he was obviously referring to the implementer. What he wrote 
made plenty of sense, rather than no sense. 



More information about the Digitalmars-d mailing list