Hacker News new | ask | show | jobs
by lopsidedBrain 2291 days ago
That is sounds more appropriate for either terminating the program or resumable exceptions like division by zero. In languages with a try-catch construct (specially C++), the complexity of implementing exceptions has to do with stack unwinding. This is where you don't want to restart in an outer context, but want to guarantee cleanup for the call frames you are abandoning.
1 comments

Hm. Good point, I guess you couldn't easily clean up things like local memory allocations from a common exception handler, huh?

Oh well, they can't all be winners.