chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] CR: expt should signal error on domain error


From: felix
Subject: Re: [Chicken-hackers] CR: expt should signal error on domain error
Date: Thu, 16 Jun 2011 12:21:56 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

John Cowan <cowan <at> mercury.ccil.org> writes:

> I've voted no on this, primarily because I think a deviation from
> IEEE behavior needs considerable justification.  NaNs were introduced
> into floating-point representations precisely so that it wouldn't be
> necessary to raise and catch exceptions.

Well, there is a floating-point specific operator that behaves according to IEEE
(on those platforms that do, that is): "fpexpt". In most cases, informing the
user of such a situation may be desirable. Would you suggest "(/ 1 0)" should
return NaN as well?


cheers,
felix





reply via email to

[Prev in Thread] Current Thread [Next in Thread]