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

The interesting case for me is if the requirements were "print Hello World". I'd argue that the one with an explicit return value is incorrect in that case, because the extra line of code leads you to believe an extra requirement exists which is to indicate success.


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

Search: