Browse thread
A nastier example
[
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: | skaller <skaller@u...> |
| Subject: | Re: [Caml-list] A nastier example |
On Sun, 2005-05-15 at 05:09, Jon Harrop wrote: > I think everyone would agree that there are caveats here but this is a > question of trade-offs. So the question should be "how can we improve upon > the current implementation?". > There are many pitfalls associated with equality in OCaml but the existence of > polymorphic comparisons is easily justified by their usefulness, IMHO. Require the user to define the comparison, then provide a way to generate them 'memberwise' for products and sums. -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net