[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Strings in hash tables




> That's because MzScheme hash tables use `eq?' for hashing, by default.
> In the 199.x versions, you can use the 'equal flag to change the
> behavior to suit your taste.

Yup, I saw the reason for the behaviour; I was wondering if string->symbol
was the correct "workaround."

And I was curious about why that implementation was chosen to begin with,
since it's different from most languages. In other words, it would have
been easy to hash string values internally the "expected" way; I thought
maybe there was a reason that wasn't done...?