Deque impl.

Walter Bright newshound2 at digitalmars.com
Tue Jan 29 12:34:49 PST 2013


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.


More information about the Digitalmars-d mailing list