>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:

Angus> 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...

Angus> I believe that the operator[] interface was introduced by Andre
Angus> as an optimization after profiling the code. 

Since our iterators store offsets (the pit, which are more stable than
a real iterator), we need direct access.

I think we need both interfaces.

JMarc

Reply via email to