5 Mar
2003
5 Mar
'03
6:13 a.m.
G'day all. On Mon, Mar 03, 2003 at 12:10:28PM -0500, Matthew Donadio wrote:
This is my biggest gripe with Haskell, at least for what I do. The numeric class system is good, but it assumes that the sub-classes are distict, where in fact integers are a proper subset of reals, which are a proper subset of complex numbers.
Haskell Integers are not a proper subset of Haskell Floats or Doubles. Haskell does not support real numbers. It's a similar problem with C/C++. The "long" type is almost never a proper subset of "float", but C will nevertheless happily convert it for you without you asking, potentially losing precision in the process. Cheers, Andrew Bromage