Deprecating fromIntegral

John Wiegley johnw at newartisans.com
Thu Sep 21 22:01:48 UTC 2017


>>>>> "NH" == Niklas Hamb├╝chen <mail at nh2.me> writes:

NH> Because `fromIntegral` is not a partial function, it fails silently.

Ah, yes, I didn't mean "partial" per se, but more in the sense of "not having
a sane answer for all inputs".

I'm -1 to changing the behavior of fromIntegral now, but +1 on adding other
functions to make the behavior more explicit.

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2


More information about the Libraries mailing list