[Haskell-cafe] Exception for NaN
Ganesh Sittampalam
ganesh at earth.li
Fri May 13 01:19:52 CEST 2011
On 12/05/2011 19:41, Nick Bowler wrote:
> On 2011-05-12 21:14 +0400, Grigory Sarnitskiy wrote:
>> I don't want NaN to propagate, it is merely stupid, it should be terminated.
>
> NaN propagation is not stupid. Frequently, components of a computation
> that end up being NaN turn out to be irrelevant at a later point, in
> which case the NaNs can be discarded.
Unfortunately, if a NaN reaches a comparison operation, it can lead to
an end result that doesn't contain NaNs, but was still influenced by one.
Ganesh
More information about the Haskell-Cafe
mailing list