int to float problem

Ketil Z. Malde ketil@ii.uib.no
04 Mar 2003 08:41:09 +0100


"Matthew Donadio" <m.p.donadio@ieee.org> writes:

>> Thank does sound like a pain, but it's better than putting fromIntegral
>> all over my code. Why can't Haskell unify a an expected float with an
>> infered int? It seems that this would make life alot easier.

Personally, I think that one of the things that made my life easier
with Haskell compared to C++, is the lack of implicit type
cast/conversions/coercions.   Now, obviously C++ does this in a quite
byzantine way, it's possible that a simpler and better system exists. 

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