3 ms·
Exceptions only propagate upwards the call stack, which can be equivalently done with return statements and some logic.
by kaba0 4y ago
Exceptions only propagate upwards the call stack, which can be equivalently done with return statements and some logic.
- hardware2win 4y agoHmm With return you can jump only 1 level higher at once
- kristov 4y agoPlus exceptions don't return to the call location - control jumps down to the catching block. Exceptions are not goto, but they are not like regular function returns either. Some weird thing in between.