25 Oct
2001
25 Oct
'01
1:30 p.m.
| Somebody raised the issue why to/fromEnum doesn't use Integer | instead of Int. This would, it would seem, solve at least | some of the Enum problems that arise from (integral) types | with more than 4G values. So, again, why not? There was an extended discussion on this point, I believe, during the Haskell 1.4 --> Haskell 98 transition. I forget the details, but I expect that efficiency was an issue. However, regardless of the merits of the case, changing the type of to/fromEnum is not a possibility for the Haskell 98 report, I'm afraid. Simon
9073
Age (days ago)
9073
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Peyton-Jones