3 ms·
Yep. Use else when the two branches do symmetrical amounts of work. Don't use else if one is an early return. If you find this discussion interesting you're pr
by akkartik 17y ago
Yep. Use else when the two branches do symmetrical amounts of work. Don't use else if one is an early return.
If you find this discussion interesting you're probably stuck with codebases with overly long functions. My commiserations.