mrclay.org
When Reasonable, Return Early
When you have a function or piece of code that must handle several different cases, I find it much better to eliminate special cases using return or throw at the beginning. (“returning early&…