Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Propagaing error from deeply nested calles

by Anonymous Monk
on Nov 22, 2019 at 20:05 UTC ( #11109079=note: print w/replies, xml ) Need Help??

in reply to Propagaing error from deeply nested calles

Bottom-line shortcut: "yes, Exceptions are the proper way to handle this, in any programming language. That's one reason why they were invented." Exceptions are, after all, "exceptional." So, instead of burdening our code with explicit tests to see if something went wrong (and, bearing the price of failure if anyone anywhere gets their tests mixed up ...), we throw a burning torch into the air and trust that someone is prepared to catch it. Works beautifully. The "exceptional" situation is neatly taken care of, and everyone else gets to ignore it (as they properly should).
  • Comment on Re: Propagaing error from deeply nested calles

Replies are listed 'Best First'.
Re^2: Propagaing error from deeply nested calles
by Your Mother (Archbishop) on Nov 23, 2019 at 01:29 UTC

    What’s the bottom-line shortcut for the OP’s actual question?

    …If yes, how?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2021-01-22 14:25 GMT
Find Nodes?
    Voting Booth?