[Top][All Lists]

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

Re: Bug in documentation for eq? ?

From: Noah Lavine
Subject: Re: Bug in documentation for eq? ?
Date: Wed, 20 Jun 2012 09:41:30 -0400


I think you're talking past each other a little bit. Andy is saying
that the Scheme standard doesn't specify eq? on numbers. David is
saying that an object should always be eq? to itself, no matter what

I believe David's claim is that Guile should guarantee that a variable
is eq? to itself, even though the standard doesn't.

I don't know what the right answer is, but I think that's what this
discussion should be about.

On Wed, Jun 20, 2012 at 9:17 AM, Andy Wingo <address@hidden> wrote:
> Hi,
> [bunch of examples]
>> Which of the above would you consider unspecified?
> As the Scheme standard clearly states, all the ones comparing numbers
> with eq?.  You find some of them surprising; that is your problem ;)  The
> answer is to not compare numbers with eq?.
> Regards,
> Andy
> --

reply via email to

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