English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2000-07-07 (14:35)
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.