Browse thread
The Implicit Accumulator: a design pattern using optional arguments
[
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: | 2007-06-27 (18:11) |
From: | Jon Harrop <jon@f...> |
Subject: | Re: [Caml-list] The Implicit Accumulator: a design pattern using optional arguments |
On Wednesday 27 June 2007 16:48:44 Mattias Engdegård wrote: > The cost is a slightly clumsier use of symbols as strings (Symbol.str), > but my feeling is that the extra safety is worth it. That is exactly what I did. Also, you cannot pattern match over the Sym.t but I believe the OCaml compiler doesn't optimize pattern matches over strings anyway. Incidentally, can we add this to the list of wanted optimizations: O(log n) matching of strings, arrays and polymorphic variants. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. The OCaml Journal http://www.ffconsultancy.com/products/ocaml_journal/?e