> Snatch two syntax constructs away from the jaws of illegal syntax and
> an unfortunate syntax, and make them useful weapons of the Perl
> arsenal. The constructs are:
>
> $ref->[[LIST]]
> $ref->{{LIST}}
>
> The proposed respective meanings:
>
> $ref->[$elem[0]]->[$elem[1]}->[...]->[$elem[-1]]
> $ref->{$elem[0]}->{$elem[1]}->{...}->{$elem[-1]}
By saying $hashref->{[LIST]} instead of $hashref->{{LIST}},
the only thing you would change is the semantics of the expression,
not the [il]legality.
--
John Porter
We're building the house of the future together.
- RFC 177 (v1) A Natural Syntax Extension For Chained Re... Perl6 RFC Librarian
- Re: RFC 177 (v1) A Natural Syntax Extension For C... Peter Scott
- Re: RFC 177 (v1) A Natural Syntax Extension F... Michael Fowler
- Re: RFC 177 (v1) A Natural Syntax Extensi... Buddha Buck
- Re: RFC 177 (v1) A Natural Syntax Extension F... David L. Nicol
- Re: RFC 177 (v1) A Natural Syntax Extension For C... John Porter
- Re: RFC 177 (v1) A Natural Syntax Extension F... Jarkko Hietaniemi
- Re: RFC 177 (v1) A Natural Syntax Extensi... John Porter
- Re: RFC 177 (v1) A Natural Syntax Extension For C... David L. Nicol
- Re: RFC 177 (v1) A Natural Syntax Extension F... Buddha Buck
- Re: RFC 177 (v1) A Natural Syntax Extensi... Jeremy Howard
