Browse thread
Re: polymorphic equality and overloading
- Benjamin Werner
[
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: | 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 universe. Addition is overloaded indeed. Cheers, Benjamin > > 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. >