Alexandru Cojocaru <xo...@gmx.com> writes:

>     `eq?' tests just for the same object (essentially a pointer
> comparison)
>     `eqv?' extends `eq?' to look at the value of numbers and
> characters.
>
> this is what I get:
>
>     scheme@(guile-user)> (eq? 3 (+ 1 2))
>     $1 = #t
>
> is this behavior intentional or some type of bug?
The wording seems less than ideal, but the behaviour is perfectly
fine, at least as far as the standard is concerned.

Having said that my advice, to you, and to everyone reading this, is
basically always use eqv?. No correct program will ever be broken by
using it and the efficiency gains if eq? are marginal.

-- 
Ian Price -- shift-reset.com

"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"

Reply via email to