On Sun, Jun 20, 2004 at 03:41:41AM +0400, Alexey Trofimenko wrote:
: There was some talks about hash keys autoquoting and barewords.. later are  
: gone and former is disambigued by forcing to write %hash{'key'} or  
: %hash«key» ( as opposite to %hash{key} which is now %hash{key()} )..  
: right?..
: that's almost ok to me, if there's any hope that « will have a _standard_  
: way to type accross all the editors:) (btw, I also hope I would never  
: happen to mantain a perl6 program written by Chineese programmer, who  
: thinks that chineese identifiers are cool)..
: 
: but now I'm curious what you gonna do with => autoquoting behavior:
: 
:   shift => 'value'      is the same as
:   shift() => 'value'    or
:   'shift' => 'value'    in perl6?
: 
: or in this particular case consistancy doesn't matter? ,)

Well, consistency with *what* is the question.  The default Perl 6
design rule is that, unless we've said otherwise, Perl 6 is consistent
with Perl 5.  So for the moment, => still autoquotes its left side.

Arguably, the :shift«value» syntax makes it easier to quote both
sides of a pair, so perhaps there's a little less need for an
autoquoting =>.  But I think that generating non-quoted keys for
subscripting happens a lot more often than non-quoted keys for pairs,
so I'm inclined to leave the autoquoting of => in for now.

Larry

Reply via email to