[Haskell-cafe] Re: pi
Andrew Coppin
andrewcoppin at btinternet.com
Wed Oct 10 16:37:35 EDT 2007
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...)
More information about the Haskell-Cafe
mailing list