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

[perl #119315] [EXPERIMENT] the lexical topic, my $_

Thread Next
From:
Ricardo SIGNES
Date:
August 16, 2013 01:26
Subject:
[perl #119315] [EXPERIMENT] the lexical topic, my $_
Message ID:
rt-3.6.HEAD-2552-1376616362-1831.119315-75-0@perl.org
# New Ticket Created by  Ricardo SIGNES 
# Please include the string:  [perl #119315]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=119315 >


Lexical topic was introduced in perl 5.10.0.  Since then, it has come up mostly
on perl5 porters when it has caused confusion like this:

  my $_; # or the now-gone implicit lexicalization by given

  # ... many lines ...

  someroutine(sub { ... $_ ... });

After a number of suggestions to deprecate the feature, it was deprecated
during the perl 5.17 series.  Rafaƫl Garcia-Suarez objected in
http://www.nntp.perl.org/group/perl.perl5.porters/2013/02/msg198987.html and
the feature was instead retroactively branded "experimental."  The gambit (from
that thread) was to "buy time" to fix it.

That time has been bought, but what will the fix be?

We need to understand what would make this feature "salvaged," and then whether
it can be accomplished.  If we can't figure out *any* acceptance criteria, then
the experiment seems doomed.

-- 
rjbs


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