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
Re: polymorphic equality and overloading
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Benjamin Werner <Benjamin.Werner@i...>
Subject: Re: polymorphic equality and overloading
> > Look at mathematics: equality is polymorphic. Addition is just overloaded.

Sorry, but I cannot resist adding my two cents :)

It depends in what formalism you are doing mathematics in. In set
theory, equality is monomorphic, since all objects live in the same

Addition is overloaded indeed.



> But as you know (and as I wrote in my previous messages), the
> polymorphic equality in Caml is not at all the "equality in
> mathematics" for many (or most?) datatypes.