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

De-experimentalise the `isa` operator

Thread Next
From:
Paul "LeoNerd" Evans
Date:
February 11, 2022 15:10
Subject:
De-experimentalise the `isa` operator
Message ID:
20220211151022.18a4fc0a@shy.leonerd.org.uk
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

  https://github.com/Perl/perl5/pull/19400

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

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About