You know, this "it's nothign but a goto" -- excuse ends up being little more than the old "spaghetti code" complaint from people who don't know what spaghetti code is.

Premature exit is no different than short-circuit evaluation, and I shudder to think the train wreck of illegible, slow, hard to digest code you would end up with if you're not using it that way.

If a "return" inside and "if" is too hard for you, I cannot imagine what utter trash the code your company vomits up.

Written by

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store