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

Re: postfix dereference syntax

Thread Previous | Thread Next
From:
James E Keenan
Date:
August 15, 2013 02:55
Subject:
Re: postfix dereference syntax
Message ID:
20130815025547.21774.qmail@lists-nntp.develooper.com
On 8/14/13 4:44 PM, Brad Baxter wrote:
> On Wed, Aug 14, 2013 at 2:22 PM, Johan Vromans<jvromans@squirrel.nl>  wrote:
>

>>
>> Which makes me think, once more, do we actualle *need* postfix
>> dereference? Does it provide anything we cannot do already, albeit at
>> the cost of an extra pair of braces? In other words: is it worth the
>> effort?
>>
>> -- Johan
>
>
> FWIW, I would never use (this incarnation of) postfix dereference.  I'm
> sorry, but to my eye $foo->@* is not prettier than @{$foo}.  And I
> understand the latter.
>
> That is to say, with the latter, I know exactly where the entity being
> dereferenced begins and ends.  With the former--phew--you got me.
>
> Regards,
>
> Brad
> ​​
>

I agree with Johan and Brad.  It appears we're adding ugly syntax and a 
maintenance burden for something that I would probably never use.

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