As discussed in PSC meeting #179, the Perl Steering Council would like use feature ':all'
to go away if possible.
It was never a good idea anyway, and has become untenable with the introduction of feature flags like indirect
and bareword_filehandles
, which disable features that are considered obsolete. We expect to have many more of those in the future (v5.42 is going to include apostrophe_as_package_separator
and smartmatch
).
Since the purpose of those features is to be disabled rather than enabled by default, a simple toggling of all features (on or off) is a nonsensical request.
Usage seems to be very limited on CPAN. https://grep.metacpan.org/search?size=20&_bb=456911623&q=use+feature+.*%3Aall&qd=&qft=&qifl= reports:
Result: found 21 distributions and 60 files matching your query !
And in core, it's only used in tests (and documentation for use feature
itself):
$ git grep -l 'use feature.*:all'
lib/B/Deparse.t
lib/feature.pm
regen/feature.pl
t/comp/require.t
t/op/svleak.t
Maybe anothe option for :all
would be to only enable the "positive" features
(experimental and enabled in the current version of Perl)? This would have
the benefit of being backwards compatible, and would solve the "nonsensical"
part that re-enables deprecated features. I don't doubt it introduces different issues.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4