Is there a simple way to use the value of a defined constant as a hash / pair key in Perl6?
For instance :
constant KEY = "a string";
my %h = ( KEY => "a value" );
This will creatre a key of "KEY" not "a string".
I can do :
my %h = ( "{KEY}" => "a value" );
But that seems a bit clunky. I was wondering if there was a better way?