4 ms·
It's amusing but I never thought of exceptions as gotos. But that's what they in essence.
by 72deluxe 13y ago
It's amusing but I never thought of exceptions as gotos. But that's what they in essence.
- ksk 13y agoHow are exceptions like gotos? I don't see any similarity. If by "essence" you mean they jump to a specific line of code, then lots of things can do that - switch/case , if/else, do/while, function calls/returns, etc.