On Fri, Dec 11, 2015 at 5:27 PM, David Storrs <david.sto...@gmail.com> wrote:
>
>
> On Fri, Dec 11, 2015 at 1:53 PM, Matthew Butterick <chronf...@gmail.com>
> wrote:
>>
>> PS. I'm assuming that you're using `eq?` here in deliberate preference to
>> `equal?`. Because `eq?` is not reliable for string comparisons.
>
>
> Ah.  No, I did not realize that.  I thought that Racket worked on a
> flyweight pattern where all strings of the same characters were eq?  --
> isn't that what interned symbols are about?


Yes, but strings aren't interned symbols (or symbols, at all, in fact).
Many (most?) uses of strings don't benefit from interning.

-Jon

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to