Deque impl.

Robert Schadek realburner at gmx.de
Tue Jan 29 14:28:55 PST 2013


On 01/29/2013 09:34 PM, Walter Bright wrote:
> On 1/29/2013 11:44 AM, Robert Schadek wrote:
>> I have a Deque implementation that I really like. I would like to get 
>> some
>> comments on it.
>
> One thing that jumped out at me was the declaration of "Iterator". D 
> convention is to use ranges, not iterators. Calling something an 
> iterator suggests it behaves like a C++ iterator.
>
> The comments say it is a range - it should be named RandomAccessRange, 
> because that's what it is.

The naming is bad. Thats pretty much clear now.



More information about the Digitalmars-d mailing list