Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Those are typically considered to be guard clauses, and I agree that they're one of the more acceptable forms of early returns, but only if they're in the first few lines of the function. Returns in the middle of a 20-line function usually give me the twitches.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: