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

Re: postfix dereference syntax

Thread Previous | Thread Next
Ricardo Signes
August 16, 2013 14:57
Re: postfix dereference syntax
Message ID:
* demerphq <> [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.


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