3 ms·
So how does the final example even look with else's? I'm not sure what argument you're trying to make with such an awful control flow in the first place? I als
by guitarbill 9y ago
So how does the final example even look with else's? I'm not sure what argument you're trying to make with such an awful control flow in the first place?
I also disagree with needing a comment, which is why I think not having an else in the first example is great. Having a return statement at the end of a function is obvious, and then all you have to do is scan upwards to find other return tokens. Especially because the final return need not be an error state.