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

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

Thread Next
Ricardo SIGNES
August 16, 2013 01:26
[perl #119315] [EXPERIMENT] the lexical topic, my $_
Message ID:
# New Ticket Created by  Ricardo SIGNES 
# Please include the string:  [perl #119315]
# in the subject line of all future correspondence about this issue. 
# <URL: >

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 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.


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