Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[S09] standard hashes coerce the keys to Str
They don't type check against Str
  • Loading branch information
moritz committed Feb 19, 2012
1 parent b3ccbd1 commit 96bd7e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S09-data.pod
Expand Up @@ -1189,7 +1189,7 @@ The standard Hash:

is really short for:

my Mu %hash{Str};
my Mu %hash{Any(Str)};

Note that any type used as a key must be intrinsically immutable,
or it has to be able to make a copy that functions as an immutable key,
Expand Down

0 comments on commit 96bd7e5

Please sign in to comment.