develooper Front page | perl.perl5.porters | Postings from October 2019

PR: Add an `isa` operator #17212

Thread Next
Paul "LeoNerd" Evans
October 24, 2019 14:32
PR: Add an `isa` operator #17212
Message ID:
I have now finished a first draft of my `isa` PR:

This PR implements the proposed operator as was suggested in

As before, to avoid duplication it would be best to keep discussions in
one place - so probably best on the GH issue/PR.

There is one outstanding design question - and that is what to do with
an unquoted bareword to a non-existing package when in `strict` mode:

  use strict;
  use feature 'isa';

  if( $obj isa This::Package::Does::Not::Exist ) { ... }

As explained in a comment:
I can see arguments in favour of either behaviour.

I invite discussion on the PR on that issue in particular as well as
any other concerns. 

Paul "LeoNerd" Evans      |  |

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