Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] [ANN] The Missing Library
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-04-28 (15:15)
From: John Goerzen <jgoerzen@c...>
Subject: Re: [Caml-list] [ANN] The Missing Library
On Wed, Apr 28, 2004 at 06:13:19AM +0100, Jon Harrop wrote:
> On Wednesday 28 April 2004 5:31 am, Brian Hurt wrote:
> > It's been too long since I've used the STL- what data structures and
> > algorithms does it provide?
> The main thing is that it is iterator-centric, so you pass iterators around 
> instead of containers. For example, to represent a subarray without having to 
> copy it. These iterators are classified according to their abilities (e.g. 

That's not necessarily a good thing.  For one, it leads to complexity.
What if you modify the parent array?  Would the iterator show the new or
original values?  What if you truncate the parent?  Would the iterator
produce fewer results than it originally promised?  And of course, you
can't so nicely use iterators in match clauses like you can lists.

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: