[Haskell-cafe] Exception for NaN

Ketil Malde ketil at malde.org
Sat May 14 15:14:31 CEST 2011


Daniel Fischer <daniel.is.fischer at googlemail.com> writes:

> Not having Eq and Ord instances for Double and Float would be extremely 
> inconvenient (too inconvenient to seriously consider, I think), so one can
> a) do what's done now
> b) make NaNs an error
> c) come up with a brilliant solution.

Maybe not terribly brilliant, but wouldn't it improve things slightly if
NaN was considered less or greater than any other value (possibly
excluding infinities)?

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants



More information about the Haskell-Cafe mailing list