develooper Front page | perl.perl5.porters | Postings from August 2013

Re: postfix dereference syntax

Thread Previous | Thread Next
From:
David Nicol
Date:
August 20, 2013 19:01
Subject:
Re: postfix dereference syntax
Message ID:
CAFwScO_vgxVWPsOSTcB6GRbZsTUF_8wo6t++vkxaSQXXm-ANsg@mail.gmail.com
looking past the "->".
>



This seems an opportune moment to request feedback on a potential extension
to this extension. Postfix dereference syntax gives us skinny arrow chains
that do not end with methods yet can yield lists.

Currently, according to my tests, a skinny arrow puts its LHS in scalar
context, meaning that commas in parentheses turn into "comma operators" and
array expressions are evaluated as their element count, when in that
position. Basically, skinny arrows aren't much use after lists or arrays.

I would like to suggest for discussion, the idea of having skinny arrows
after arrays map the RHS over their LHS.

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