in reply to Re: conditional catch-blocks 'try {} catch(COND) { }'
in thread conditional catch-blocks 'try {} catch(COND) { }'
I agree with afoken that an uniform global handle_error doesn't solve the need to define an ad-hoc catch condition.
> there's the experimental "Try Catch Exception Handling" introduced in Perl v5.34
a great I forgot about this one, have to see if it covers all the cases.
And it's certainly not backwards compatible. Which is a general problem of most experimental features.
Having a stable strategy which works with older Perls albeit slowly and nice and fast with newer once would facilitate the development and evalution of new features tremendously.
> and no doubt many more.
It would be nice to formulize the requirements covered and to test all those "many more" modules against them.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: conditional catch-blocks 'try {} catch(COND) { }'
by pryrt (Abbot) on Sep 20, 2021 at 13:56 UTC | |
by LanX (Saint) on Sep 21, 2021 at 12:29 UTC | |
by LanX (Saint) on Sep 20, 2021 at 22:41 UTC | |
|
Re^3: conditional catch-blocks 'try {} catch(COND) { }'
by kcott (Archbishop) on Sep 20, 2021 at 15:06 UTC |