forked from nothingmuch/try-tiny
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
The fact of using
-
You lose access to $_ from outside the try/catch. This has never really bothered me, but I could see it bugging someone who uses $_ in iterations more than I do.
-
Setting $@ is the only way to get PROPAGATE from Perl exceptions. The fact that T::T uses a different variable makes anyone who wants PROPAGATE to do
local $@ = $_;within every catch {} where we might potentially rethrow the exception. This is annoying.
I propose a flag, and/or some other means, of telling Try::Tiny to set a local()ized $@ as the exception variable within catch {} blocks.
Thoughts?
Metadata
Metadata
Assignees
Labels
No labels