[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Equality predicates, signed zeroes, R5RS and R6RS
From: |
Andy Wingo |
Subject: |
Re: Equality predicates, signed zeroes, R5RS and R6RS |
Date: |
Wed, 02 Feb 2011 21:09:10 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
On Mon 31 Jan 2011 20:53, Mark H Weaver <address@hidden> writes:
> Given that everyone agrees that `eqv?' must distinguish 0 from 0.0, it
> is already not useful as a numerical `='. Any program that uses it this
> way is asking for trouble. Therefore, I don't have qualms about keeping
> our existing behavior, namely that (eqv? 0.0 -0.0) returns #f.
>
> What do you think?
This sounds OK to me. I don't have a horse in the race, but the
argument that (eqv? 0 0.0) => #f is convincing, especially given the
0.0-or-0 games that many procedures are allowed to play.
Andy
--
http://wingolog.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Equality predicates, signed zeroes, R5RS and R6RS,
Andy Wingo <=