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

Re: postfix dereference syntax

Thread Previous | Thread Next
Eric Brine
August 15, 2013 14:11
Re: postfix dereference syntax
Message ID:
On Wed, Aug 14, 2013 at 4:44 PM, Brad Baxter <> wrote:

> That is to say, with [ @{...} ], I know exactly where the entity being
> dereferenced begins and ends.  With [ ...->@* ] --phew--you got me.

Knowing a chain of similar operators end is rarely if ever a concern.

Having to maintain yet another mental a mental note (e.g. that an array
deref will eventually be performed) while reading a long chain of
expressions is.

This features allows code to be placed where it's performed instead of far
in advance.




(btw, can that arrow be omitted?)

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About