develooper Front page | perl.perl5.porters | Postings from July 2023

Thread Previous | Thread Next
Alexander Hartmaier
July 17, 2023 14:52

Message ID:
On Sat, Jun 18, 2022 at 2:20 AM Ricardo Signes <>

> On Wed, Jun 8, 2022, at 07:12, Paul "LeoNerd" Evans wrote:
> While it is initially tempting to suggest that `catch` would expose
> core-thrown exceptions as objects, there is already a problem here. In
> the past 20-odd years, the $@ variable (and more recently catch) have
> always exposed core-thrown exceptions as plain strings; anything that
> appears as an object must have been some user-thrown object:
> I believe you eventually came around to agreeing that this made sense.
> "catch ($e)" could get an object in $e, while $@ would remain a string.
> (You did this through the creation of a hypothetical ${^EXCEPTION}, but I
> think it's largely immaterial.)
> This likely means that try/catch remain experimental a bit longer, but
> also seems well worth it to me.
> --
> rjbs

@Ovid: I hope you're lurking around here. I just read your post at
and wanted you to point here regarding the native exception proposal which
I'm also highly interessted in but wasn't able to accomplish it alone.

Count me in if/when design on it starts!

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