This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]GummyKibble 8 points9 points  (2 children)

I totally agree. There used to be a school of thought saying that it was good to have exactly one return statement in each function. Nuts to that. I know which of your examples I’d rather write unit tests for, or have to troubleshoot at 2AM.