3 ms·
That is sounds more appropriate for either terminating the program or resumable exceptions like division by zero. In languages with a try-catch construct (spec
by lopsidedBrain 7y 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.
- leggomylibro 7y agoHm. 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.