diff options
author | Ricardo Signes <rjbs@semiotic.systems> | 2021-04-04 16:16:11 -0400 |
---|---|---|
committer | Ricardo Signes <rjbs@users.noreply.github.com> | 2021-04-04 17:24:27 -0400 |
commit | d23c9e49d142b3a749181a63a9f694a97ab76185 (patch) | |
tree | bcf6146bfde5a5f6057d2a5d1eecf6082d392711 /lib | |
parent | d15aa6aefc4bcac559a726b31795a77d0a599149 (diff) | |
download | perl-d23c9e49d142b3a749181a63a9f694a97ab76185.tar.gz |
feature.pl: document all experiments identically
...and add "this is an experiment" to "isa"
Diffstat (limited to 'lib')
-rw-r--r-- | lib/feature.pm | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/lib/feature.pm b/lib/feature.pm index a0bd853ac6..21eed6b39d 100644 --- a/lib/feature.pm +++ b/lib/feature.pm @@ -160,9 +160,9 @@ This feature is available starting with Perl 5.10. =head2 The 'switch' feature -B<WARNING>: Because the L<smartmatch operator|perlop/"Smartmatch Operator"> is -experimental, Perl will warn when you use this feature, unless you have -explicitly disabled the warning: +B<WARNING>: This feature is still experimental and the implementation may +change or be removed in future versions of Perl. For this reason, Perl will +warn when you use the feature, unless you have explicitly disabled the warning: no warnings "experimental::smartmatch"; @@ -289,9 +289,8 @@ regardless of what feature declarations are in scope. =head2 The 'signatures' feature B<WARNING>: This feature is still experimental and the implementation may -change in future versions of Perl. For this reason, Perl will -warn when you use the feature, unless you have explicitly disabled the -warning: +change or be removed in future versions of Perl. For this reason, Perl will +warn when you use the feature, unless you have explicitly disabled the warning: no warnings "experimental::signatures"; @@ -309,9 +308,8 @@ This feature is available from Perl 5.20 onwards. =head2 The 'refaliasing' feature B<WARNING>: This feature is still experimental and the implementation may -change in future versions of Perl. For this reason, Perl will -warn when you use the feature, unless you have explicitly disabled the -warning: +change or be removed in future versions of Perl. For this reason, Perl will +warn when you use the feature, unless you have explicitly disabled the warning: no warnings "experimental::refaliasing"; @@ -346,9 +344,8 @@ category. =head2 The 'declared_refs' feature B<WARNING>: This feature is still experimental and the implementation may -change in future versions of Perl. For this reason, Perl will -warn when you use the feature, unless you have explicitly disabled the -warning: +change or be removed in future versions of Perl. For this reason, Perl will +warn when you use the feature, unless you have explicitly disabled the warning: no warnings "experimental::declared_refs"; @@ -361,6 +358,12 @@ This feature is available from Perl 5.26 onwards. =head2 The 'isa' feature +B<WARNING>: This feature is still experimental and the implementation may +change or be removed in future versions of Perl. For this reason, Perl will +warn when you use the feature, unless you have explicitly disabled the warning: + + no warnings "experimental::isa"; + This allows the use of the C<isa> infix operator, which tests whether the scalar given by the left operand is an object of the class given by the right operand. See L<perlop/Class Instance Operator> for more details. |