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
A nastier example
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-05-15 (15:50)
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,
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language