[erlang-questions] strictly less-than (Re: [erlang-questions] Ordered set and DETS)

David Mercer dmercer@REDACTED
Wed Sep 8 15:44:10 CEST 2010


On September 07, Robert Virding wrote:

> On 7 September 2010 08:27, Richard O'Keefe <ok@REDACTED> wrote:
> >
> > ...
> >
> > (One of the things I just *love* about Ada and Haskell
> > is that they do not allow 'mixed mode arithmetic'.)
> 
> This was also something we got wrong. We tried to be helpful and
> wanted to make it easy to use. To be fair though we never saw
> arithmetic as an important part of the language and in the beginning
> we didn't even have floats.

I wonder if the equality operator should even be applicable to floats.
After all, float F1 really represents a number between F1 - epsilon and F2 +
epsilon.



More information about the erlang-questions mailing list