7
comments
Why use goto when you can throw exceptions to escape nested for loops?
14 0 Replyexceptions are just fancy gotos
7 0 ReplyExceptions are fancy returns. Everything else is fancy goto, including returns...
1 0 Reply
I don’t see a
catch
in the screenshot. Maybe this block just has afinally
that cleans some things up before the exception is thrown?2 0 ReplyWhy use try/if/catch when you can use try/if/switch/catch?
1 0 ReplyWhy throwing an exception without a message, when you can use
0/0
1 1 Reply
You've viewed 7 comments.
Scroll to top