So now I wonder, are strings treated specially here?

In the last example, the string keys are using equality, to match x and y 
to the key with value "test", whether it is an ASCIIString or UTF8String 
doesn't matter.

But for numbers the keys are looked up by identity (bits).

I would have expected the string keys to be looked up by their memory 
adresses (since there is no method "bits(String)"), as the docs suggest, 
but it uses equality?

Dict keys lookup implementation:

* Strings -> equality -> lexicographical comparison
* Numbers -> Identity -> bits level repr
* Other mutable -> identity? -> memory adress

Am I getting this right?

Reply via email to