develooper Front page | perl.perl6.language | Postings from December 2004

Re: Angle quotes and pointy brackets

From:
John Siracusa
Date:
December 1, 2004 06:48
Subject:
Re: Angle quotes and pointy brackets
Message ID:
BDD3432A.1D9C3%siracusa@mindspring.com
On Wed, 01 Dec 2004 07:41:18 GMT, Smylers <smylers@stripey.com> wrote:
> John Siracusa writes:
> 
> > Call me crazy, but at this point I'm prone to stick with what I've done in
> > Perl 5 for years:
> >
> >     $var{'key1'}{'key2'}[3]{'key3'}
> 
> In which case do that, since it'll still work in Perl 6.
> [...]
> So life is better for people who like writing hash subscripts as you do.
> But for those who like autoquoting, there's now a different syntax, one
> that doesn't interfere with the above syntax at all.  You don't have to
> use it if you don't want to, and everybody's happy!

Even if I don't use it, I'd like it not to be ugly and awkward (or, heaven
forbid, non-ASCII) because I'm likely to have to read and edit it a lot
(just as I have to deal with a lot $of{this} these days...sigh)

Although I like the single/double angle swap in most places, I'm definitely
not a fan of the "fragile fish chain" syntax for hash keys.

-John





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About