Skip to content

Commit 9358df7

Browse files
tonycozhaarg
authored andcommitted
feature: switch no longer being removed
It no longer produces experimental warnings. Fixes #23282
1 parent 6225344 commit 9358df7

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

lib/feature.pm

Lines changed: 3 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

regen/feature.pl

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ sub longest {
618618

619619
__END__
620620
package feature;
621-
our $VERSION = '1.95';
621+
our $VERSION = '1.96';
622622
623623
FEATURES
624624
@@ -727,21 +727,13 @@ =head2 The 'smartmatch' feature
727727
728728
=head2 The 'switch' feature
729729
730-
B<WARNING>: This feature is still experimental and the implementation may
731-
change or be removed in future versions of Perl. For this reason, Perl will
732-
warn when you use the feature, unless you have explicitly disabled the warning:
733-
734-
no warnings "experimental::smartmatch";
735-
736730
C<use feature 'switch'> tells the compiler to enable the Raku
737731
given/when construct.
738732
739733
See L<perlsyn/"Switch Statements"> for details.
740734
741-
This feature is available starting with Perl 5.10.
742-
It is deprecated starting with Perl 5.38, and using
743-
C<given>, C<when> or smartmatch will throw a warning.
744-
It will be removed in Perl 5.42.
735+
This feature is available starting with Perl 5.10. It is enabled by
736+
feature bundles 5.10 through 5.34.
745737
746738
=head2 The 'unicode_strings' feature
747739

0 commit comments

Comments
 (0)