RE: [Haskell] Re: sizeFM type
28 Apr
2004
28 Apr
'04
4:35 p.m.
On 26 April 2004 19:45, Don Groves wrote:
Hello, Haskell newbie here.
Some languages handle the Int/Integer question automatically, determined by the size of the integer in question. Int is used until the integer excedes what the underlying architecture can handle, then the switch is made to Integer (bignum). Is this something that could be handled similarly by the Haskell compiler without violating anything? Just thinking out loud...
This is exactly how GHC implements Integer, FWIW. Cheers, Simon
8157
Age (days ago)
8157
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow