You must log in or register to comment.
Why use goto when you can throw exceptions to escape nested for loops?
exceptions are just fancy gotos
Exceptions are fancy returns. Everything else is fancy goto, including returns…
Why throwing an exception without a message, when you can use
0/0
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?It doesn’t have a catch block, and it isn’t supposed to throw any other exceptions inside the try block either.
Why use try/if/catch when you can use try/if/switch/catch?