|
|
|
|
|
by timoxley
3002 days ago
|
|
I'm trying to imagine worst case scenarios here, and at least in an environment like JavaScript, I'm struggling to see how a beginner being overeager with early returns can possibly create anywhere near the same degree of mess as a someone overusing nested if/else statements. Agreed on early returns being questionable for "two variations of the same concept" though, these days I generally use if/else for situations like that. |
|