3 ms·
Just use whatever seems clearer
by naz 17y ago
Just use whatever seems clearer
- akkartik 17y agoYep. 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.