Abdelrazak Younes <[EMAIL PROTECTED]> writes:
> By the way, right now, there are multiple instances in the code where 
> operator[] access is used. Thus implying that we must present a position 
> type interface (vector alike). At the same time, like in the case above, 
> there are instances where the coder preferred an iterator interface. I 
> am fine with the idea of presenting both types of interfaces (my version 
> of ParagraphList presents both) but what is the opinion of developers? 
> Do we have to force one way or the other?
> My opinion is that for cases like the above, a position type interface 
> is better because shorter. But there are other cases where an iterator 
> interface should be very useful... albeit not many in current cvs (or 
> svn ). But sometimes too much choice kills the flexibility...

I believe that the operator[] interface was introduced by Andre as an
optimization after profiling the code. There's lots of explanation buried in the
archives, but I'd guess that the person with the most experience of this stuff
(and who's also active ;-)) is Martin.

I'd try Jean-Marc and Lars if I wanted to discuss killing either interface...

Angus


Reply via email to