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

[perl #116943] deprecate @*, %*, &*, ** too

From:
Father Chrysostomos via RT
Date:
June 26, 2013 13:14
Subject:
[perl #116943] deprecate @*, %*, &*, ** too
Message ID:
rt-3.6.HEAD-2552-1372252487-1421.116943-15-0@perl.org
On Tue Apr 09 07:33:10 2013, nicholas wrote:
> And I got this wrong. In that, Perl 6 does have @*foo. But that's a
> dynamic
> scoping lookup. The slurpy syntax is *@foo. (And *%foo, and *$foo)
> http://perlcabal.org/syn/S06.html#List_parameters
> 
> For which we don't need to worry about the various sigils used with
> the **
> typeglob at all. We need to consider how the parser deals with the 3
> typeglobs *@, *% and *$. And based on how $# and $#foo are handled, I
> think
> that everything that is wanted for "new" syntax is currently a syntax
> error.
> Or, if not, all that is currently legal syntax is incredibly obscure
> corner
> cases.

Not too incredibly:

vec $buf,1,1,*$foo

I take advantage of that comma-then-infix trick all the time.

And when generating reports, multiplying by an array length (*@foo) is
not so uncommon, either.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=116943



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About