Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^5: Die inside Try::Tiny blocks

by chromatic (Archbishop)
on Apr 30, 2013 at 00:44 UTC ( [id://1031298]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Die inside Try::Tiny blocks
in thread Die inside Try::Tiny blocks

So finally blocks aren't in fact good ways to make sure cleanup gets performed?

They are, but you're talking about nesting code which may throw exceptions in the finally blocks of exception handlers. How are you going to handle those exceptions? Do they have their own finally blocks? This gets complicated pretty fast.

Replies are listed 'Best First'.
Re^6: Die inside Try::Tiny blocks
by dd-b (Monk) on May 14, 2013 at 19:20 UTC

    Yes, complicated code is complicated. :-)

    It's frequently the case that cleanup operations can fail, is the thing, and that ignoring those errors leads to especially confusing bugs.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1031298]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-23 20:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found