Re:Avoid Else, Return Early (2013)
by augustk on Monday March 26, 2018 @12:19PM
(#16679999)
That's because the return statement is a kind of goto statement. Goto-like statements reduce the value of structured programming. In a pure structured program, each statement sequence is either completely executed or not executed. There are also pure structured languages, like Oberon, which doesn't allow impurely structured programs.
[ Parent
| on HN ]