Hacker News new | past | comments | ask | show | jobs | submit login

Ironic that I find functions with multiple return statements to be much less readable than declaring a return variable at the top named for what the function will be returning, usually with the default value that the function would return, setting it in multiple points throughout the function, and then returning it once at the end.



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

Search: