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