Front page | perl.perl5.porters |
Postings from January 2017
Re: Deprecation plans
Thread Previous
|
Thread Next
From:
Ævar Arnfjörð Bjarmason
Date:
January 10, 2017 11:06
Subject:
Re: Deprecation plans
Message ID:
CACBZZX47CPQ=fxvzDct0rsWKkpZQtR3md_44iOvQTp4c3sAnXQ@mail.gmail.com
On Sun, Jan 8, 2017 at 7:22 PM, Sawyer X <xsawyerx@gmail.com> wrote:
> * $* is no longer supported: Functionality removed in 5.10.0, removing
> the warning.
>
> * $# is no longer supported: Functionality removed in 5.10.0, removing
> the warning.
>
> [...]
>
> * Use of assignment to $[ is deprecated: Deprecated in 5.12.0; list
> context deprecated in 5.14.0, fatal in 5.28 (unless you use arybase)
Yes to deprecating all of these, but why are we treating the
deprecation of $* / $# differently from $[ ?
I.e. once the warning is removed from the former two will be freed up
for use as normal variables, whereas that won't happen with $[
which'll be made fatal.
Shouldn't we be consistent here and either make all previously magical
variables listed in perlvar either not special at all (as seems to be
the plan with $* & $#), or reserve them forever by making their use
fatal as is the plan with $[?
My bias would be to just make them all fatal, despite all these old
deprecation warnings someone will dig up an old script / blogpost /
Matt's Script Archive entry and try to execute it, I think it would be
more helpful to just die in those cases instead of introducing subtle
behavior differences.
But maybe not and we should just un-magic them, but in that case why
only un-magic some but not others?
Thread Previous
|
Thread Next