No, I am not going t type or paste an example, I described it well enough that you should have no trouble visualizing it.

I don’t have time to answer everything but I’m going ask you just what exactly is wrong with “half a dozen levels of indentation,” and given the acreage of modern monitors why that is any consideration.

The only way around this, regardless of checking for error or checking for success, is mid-function returns, which only very junior or very stupid developers do.

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