develooper Front page | perl.perl5.porters | Postings from February 2022

De-experimentalise the `isa` operator

Thread Next
Paul "LeoNerd" Evans
February 11, 2022 15:10
De-experimentalise the `isa` operator
Message ID:
The time has come, the walrus said, ...

.. No, nothing about cabbages or kings, but to de-experimentalise a
feature that's been in experimental for a while now without change. I
refer of course to

  use feature 'isa';

I've written a PR to remove the experimental warning and add it to the
:5.36 feature bundle

This will now mean you'll be able to

  use v5.36;

  use Thing;

  my $thing = Thing->new;
  say "It's a Thing" if $thing isa Thing;

As this is the first de-experimentalising we've done in a while, I'm
not 100% sure that I have covered all the bases; there may still be
steps I have missed. It'd be great to get some folks to review this and
see if there's anything else that needs doing.

((There's probably some bits of documentation somewhere or other that
  can make louder mention of this operator, but I plan to address that
  as part of a wider task of "lets update docs examples to more modern
  code standard" once we hit the 5.35.9 code-freeze.))

Paul "LeoNerd" Evans      |  |

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About