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

Re: postfix dereference syntax

Thread Previous | Thread Next
David Nicol
August 20, 2013 19:01
Re: postfix dereference syntax
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About