Posted: 07/04/08 23:17:26
Sure thing (re. looking at the new containers) Actually, I am willing to do the whole containers library if you need a hand at it---I know some of you prefer lower-level stuff and I love data structures.
I don't know what you are looking for in your containers library. I cold find precious little with google; just a couple references to past threads about stl vs java-isms and iterators (but I couldn't find the threads).
My 2 bits in regards to what I think the threads were discussing:
Concerning stl iterators: if you need an iterator to stop at a certain portion of a container, an iterator of a slice would do nicely, but that creates an extra referential object (although it does share the internal structure). Java does this with, for example, List.subList().
Concerning stl templates vs java interfaces:
I really liked the view-only interfaces available through the interfaces. I saw one complaint that you could upcast to a mutable version so he suggested const methods; but you cold also upcast to a non-const version as well. I suggest having a limited view through interfaces that allow for iteration, containment checking, etc. and have the rest implement in the stl-style.
Of course it's not entirely up to me, yet as soon as it gets discussed, we'll get M views from N people (where M >= N).
Anyway, a thought stream.
--Michael
Happy 4th for you Americans out there. Happy 1st to you Canadians.