On 03/14/2016 07:53 PM, Matthew Flatt wrote: > [fixnum eqness is guaranteed by the docs. > [...] And keywords [are also guaranteed]. > [...] [And] Booleans, void, and characters with a scalar value under 256. > > Opaque objects like custodians and inspectors are also `equal?` only > when they are `eq?`, but I'm not sure if that's the kind of thing > you're looking for.
Great, thank you. I am building up a list of things safe-to-use-eq? on because I want to sometimes skip expensive hashconsing-by-equal?. If I know that eq? is already the right predicate, then the value is effectively already hashconsed. If there were a predicate `eq-applicable?` (or something), I could skip using a hand-coded list of special cases, and could systematically avoid the expense of hashconsing for a wider range of values. Any thoughts on the possibility of such a predicate existing in Racket? :-) 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

