Version française
Home     About     Download     Resources     Contact us    
Browse thread
Type abstraction and (polymorphic) equality
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Andreas Rossberg <rossberg@p...>
Subject: Re: [Caml-list] Type abstraction and (polymorphic) equality
Jon Harrop wrote:
> 
> I do not believe so. IIRC, SML has equality types to help with this problem.

Equality types only provide half a solution (preventing accidental 
(ab)use of polymorphic equality). Solving the whole problem (enabling 
user-defined equality on user-defined types) requires something more 
general, e.g. type classes.

   - Andreas

-- 
Andreas Rossberg, rossberg@ps.uni-sb.de

Let's get rid of those possible thingies!  -- TB