As a Julia newbie, I see no problem with that. Modifying the keys of a
hash table is an operation with undefined consequences ("just don't do
it"), so the programmer should focus on good practices that prevent this
from happening (it is not that hard).

The alternative is to only allow bits types or containers which are
immutable recursively (eg an immutable type which contains a mutable
container is ruled out). In practice, this can be done, bit it would
lead to a lot of boilerplate in case wants to use other types as keys.

Best,

Tamas

On Mon, Oct 13 2014, nbbb <[email protected]> wrote:

> as a julia outsider (for now), it seems odd to me that mutable containers 
> are allowed as dictionary keys at all.

Reply via email to