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

Re: review of perlexperiment, 2021-10

Thread Previous | Thread Next
From:
Yuki Kimoto
Date:
October 16, 2021 01:23
Subject:
Re: review of perlexperiment, 2021-10
Message ID:
CAExogxOBw103Yk6-1Lex_fgc7XjD7H-GfCco9wXaDSwyNSMQaw@mail.gmail.com
2021-10-14 18:57 Paul "LeoNerd" Evans <leonerd@leonerd.org.uk> wrote:

> On Thu, 14 Oct 2021 12:41:35 +0900
> Yuki Kimoto <kimoto.yuki@gmail.com> 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")'
>   URGH
>
> 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. :(
>
>
 I pick  b) Implement `isa` better, knowing it no longer matches `->isa`

Porters, Which do you want, a or b?

Thread Previous | 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