Are fixnums guaranteed to be `eq?` whenever they are `=`/`equal?` ?

Tony Garnock-Jones <[email protected]>
Newsgroups gmane.comp.lang.racket.user,gmane.lisp.scheme.plt
Message-ID <[email protected]>
Hi all,

Can I rely on the truth of the following:

  (implies (and (fixnum? x) (fixnum? y) (= x y))
           (eq? x y))

?

I know I can rely on something similar for symbols.

What other sorts of values can I rely on eq? being an appropriate
equivalence predicate for?

Tony

-- 
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.