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

Re: postfix dereference syntax

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
August 16, 2013 14:57
Subject:
Re: postfix dereference syntax
Message ID:
20130816145655.GC17471@cancer.codesimply.com
* demerphq <demerphq@gmail.com> [2013-08-15T13:04:53]
> ...
> because the former tells us we are getting back a scalar. The latter
> says we are getting back a list.
> 
> From this point of view you could argue that the postfix form disrupts
> this pattern:
> 
> my @things= $foo->@*;
> 
> So, now, the $ no longer can be relied to refer to a "scalar", it
> might be a scalar, it might not.
> 
> This IMO is a real stumbling block for this proposal. It break well
> established and documented expectations for what seems to be little
> benefit.

Thanks, this is a useful bit of input.  Right now, I am feeling unmoved by it,
but I will keep thinking about it.

Relevant to that, other dear readers of this thread: I will be taking my family
on vacation next week and will be replying less, later, and/or not at all.

-- 
rjbs

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