Branch: refs/heads/book/deprecate-all-feature-bundle Home: https://github.com/Perl/perl5 Commit: 849f151b6b390c663b4a54946eb8a75f3c436ba6 https://github.com/Perl/perl5/commit/849f151b6b390c663b4a54946eb8a75f3c436ba6 Author: Philippe Bruhat (BooK) <b...@cpan.org> Date: 2024-12-04 (Wed, 04 Dec 2024)
Changed paths: M lib/feature.pm M pod/perldelta.pod M regen/feature.pl M t/comp/require.t 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