Yeah, there's no ideal solution. Python disallows mutable keys; Ruby allows them and has the same behavior as Julia here; Perl turns all keys into strings (I think that string keys may still be mutable in Perl, but it's become so hard to get a readline-enabled prompt in Perl, that I gave up on checking).
On Mon, Oct 13, 2014 at 12:47 PM, nbbb <[email protected] <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote: > yes, hashing by identity seems weird since then you could end up with two > keys that are mutable containers with the same values, but hash > differently. this seems a mess. > the only foolproof option seems be to shock-freeze mutable keys on usage, > copying and converting them to immutable values. that also sounds bad. > it seems, either safe and finicky or unsafe (and potentially sorry :) ) >
