[Ecls-list] Extension to infinity and NaN?
Juan Jose Garcia Ripoll
lisp at arrakis.es
Wed Jul 20 09:26:38 UTC 2005
On Wed, 2005-07-20 at 16:50 +0200, Julian Stecklina wrote:
> Having (/ 1 0) signal no error violates the POLA for quite some users,
> and is mathematically incorrect (infinity is no number). When does it
> come handy?
What about (/ 1.0 0.0)? I strongly feel that (/ 1 0) _must_ signal an
error because it is rational arithmetic. On the other hand, floating
point arithmetics behaves differently, and infinites and NaNs are quite
common out there.
More information about the ecl-devel