develooper Front page | perl.perl5.porters | Postings from November 2010

Re: [PATCH] Add "safe arrow/safe dereference" operator: &&->

Thread Previous | Thread Next
From:
David Golden
Date:
November 29, 2010 13:15
Subject:
Re: [PATCH] Add "safe arrow/safe dereference" operator: &&->
Message ID:
AANLkTim7Yv0YdW8Ks_XMp_5DJ8DaM9s+9EjNUYAvFBHW@mail.gmail.com
On Mon, Nov 29, 2010 at 3:54 PM, Rafael Garcia-Suarez <rgs@consttype.org> wrote:
> ->> (since it does not cause pod nightmares) would get my vote currently.

While I'd prefer "?->" in an ideal world, I concur there are too many
issues with it.

if I had to go with an alternative, I'd support "->>".

It still looks clearly like an arrow, it's longer indicating it's
"special", and it's easy to type by just bouncing on the last key.

    if ($foo->>{bar}->>baz(23)->>{biff} ) { ... }

-- David

Thread Previous | Thread Next


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