Browse thread
How to do this properly with OCaml?
-
Thomas Fischbacher
- Christophe Dehlinger
- Berke Durak
- Michel Quercia
- Eric Cooper
-
Michael Alexander Hamburg
-
Xavier Leroy
- Berke Durak
- Michael Alexander Hamburg
- Thomas Fischbacher
- Alex Baretta
-
skaller
- Stephane Glondu
- Ken Rose
- Thomas Fischbacher
-
Xavier Leroy
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Jon Harrop <jon@f...> |
| Subject: | Re: [Caml-list] How to do this properly with OCaml? |
On Tuesday 26 July 2005 02:20, Brian Hurt wrote: > On Tue, 26 Jul 2005, Jon Harrop wrote: > > I came from a C++/STL background and was accustomed to using extensible > > arrays. Having tweaking my perception of suitable data structures to be > > more appropriate when coding in OCaml, I now prefer the idea of a faster > > run-time and no extensible arrays. I've never actually needed them > > (except inside Hashtbl). > > Actually, they aren't needed in hashtbl either... Ooops, yes. I thought Hashtbl used Obj but you're quite right - I was thinking of Queue. > No- variable length arrays are needed when you're implementing other data > structures on top of arrays, like stacks or queues. At which point I > start asking which data structure you really need- a variable length > array, or a stack or queue? I've never used Queue so I guess I'm not even using Obj indirectly... -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective CAML for Scientists http://www.ffconsultancy.com/products/ocaml_for_scientists