Branch: refs/heads/book/deprecate-all-feature-bundle
  Home:   https://github.com/Perl/perl5
  Commit: a47da675186c688100648832361e65bc8f769f8c
      
https://github.com/Perl/perl5/commit/a47da675186c688100648832361e65bc8f769f8c
  Author: Philippe Bruhat (BooK) <b...@cpan.org>
  Date:   2024-12-03 (Tue, 03 Dec 2024)

  Changed paths:
    M lib/feature.pm
    M regen/feature.pl
    M t/lib/feature/bundle
    M t/op/lexsub.t

  Log Message:
  -----------
  deprecate the ':all' feature bundle

As discussed in perl/PPCs#60, `:all` is very unlikely to be useful.

Since it will enable all features a future Perl might support, it will
also enable some that might be incompatible with the code as written
(see `bitwise`, for example, which changes the meaning of the existing
bitwise operators).

With the addition of "negative" features in v5.32, `:all` became even
less useful, since it would re-enable features deemed undesirable in
modern Perl.

As this point in time, `:all` is effectively a footgun.

If the keyword `all` (from PPC0027) is added as a feature, there's an
extra risk of confusion between `use feature 'all'` and `use feature ':all'`.

This patch makes `:all` warn. We should consider removing that bundle
entirely in the future.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to