|Date:||Sun, 28 May 2017 14:56:06 -0400|
|From:||brian d foy <brian.d.foy [...] gmail.com>|
|To:||rakudobug [...] perl.org|
|Subject:||%() creates a Map|
It looks like %() with no characters between the parens creates a Map, but if there's at least one character between the parens, it creates a Hash. I figure all of these should create a Hash: my %hash = %(); put '1: ', %hash.^name; # 1: Hash my $hash-empty = %(); put '2: ', $hash-empty.^name; # 2: Map my $hash-space = %( ); put '3: ', $hash-space.^name; # 3: Hash Where is %() documented (other than examples using it)? $ perl6 -v This is Rakudo version 2017.04.3 built on MoarVM version 2017.04-53-g66c6dda implementing Perl 6.c.