Excuse my quoting, this is getting difficult. :)

Damian wrote this in response to Steve's question:

> > Very probably like I described in Exegesis 2:
> > 
> >     @array[@indices]
> > 
> >     %hash[@keys]
> 

To which Steve responded:
> Here you use square brackets after the hash name, but below
> you use curly braces.  Which is it? 
> 

To which I would respond that it looks to me like Damian mis-typed when
he quoted from his own Exegesis with %hash[@keys]. Because according to
both Larry and Damian, in their respective articles on Perl6, hashes
will continue to be named using brace syntax. ie: %foo{$bar},
%foo{@bar}, and $foo{$bar} for the reference.

> A general question: I think in principle we could remove the
> @ from @foo[something] without loss of information -- the square 
> braces tell us that foo is an array.  Is this true?
> If so has any thought been given to making the @ and %
> optional in certain contexts?

Or is foo an array reference?
$foo[something]

Christopher

Reply via email to