
10 Oct
2007
10 Oct
'07
8:37 p.m.
Henning Thielemann wrote:
It would better to disallow negative bases completely for (**), because integers should be explicitly typed as integers and then (^^) can be used. I have already seen (x**2) and (e ** x) with (e = exp 1) in a Haskell library. Even better would be support for statically checked non-negative numbers.
Um... Data.Word? (Now if you'd said "strictly positive", that's harder...)