On Fri, Dec 11, 2015 at 2:32 PM, Jon Zeppieri <[email protected]> wrote:
> On Fri, Dec 11, 2015 at 5:27 PM, David Storrs <[email protected]> > wrote: > > > > > > On Fri, Dec 11, 2015 at 1:53 PM, Matthew Butterick <[email protected]> > > 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. > Aha. Good to know, thank you guys. That would have made for some difficult-to-find bugs in the future. > > -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 [email protected]. For more options, visit https://groups.google.com/d/optout.

