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

Re: Core exception types [was: Re: Pre-RFC: Improve “wide character” warnings]

Thread Previous | Thread Next
From:
Branislav Zahradník
Date:
June 8, 2022 12:06
Subject:
Re: Core exception types [was: Re: Pre-RFC: Improve “wide character” warnings]
Message ID:
CAB=rbO=_U11fcdcdGX4jOYXEY8NHhsKDOk=YYcxu0YRSNNr88w@mail.gmail.com
> What should we do here?
>
>  1) Throw objects of some core-defined type, so `ref` and `blessed` are
>     now true on these things, meaning they can be distinguished -
>     including by some sort of `isa` test as might someday be added to
>     `catch`, but thus breaking all existing code which inspects $@ or
>     $e.
>

What about ref == false, blessed == true scenario?

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