# New Ticket Created by  "brian d foy" 
# Please include the string:  [perl #131392]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=131392 >


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.

Reply via email to