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

Re: review of perlexperiment, 2021-10

Thread Previous | Thread Next
Paul "LeoNerd" Evans
October 14, 2021 09:56
Re: review of perlexperiment, 2021-10
Message ID:
On Thu, 14 Oct 2021 12:41:35 +0900
Yuki Kimoto <> wrote:

>  Is it possible to change to the expected behavior?

That would be /possible/ but it would mean that it no longer behaves
like the existing ->isa method.

The original ->isa method behaves badly too:

  $ perl -E 'say "URGH" if (bless {}, "not-a-hash")->isa("HASH")'

Thus is the core of the problem. Do we

  a) Implement `isa` exactly like `->isa`, including that mistake?

  b) Implement `isa` better, knowing it no longer matches `->isa`

Pick one. Both are bad. :(

Paul "LeoNerd" Evans      |  |

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