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

This is worse in every possible way. If the default value was part of the domain of the function it would be impossible to distinguish an error from a legit answer without breaking encapsulation. If it wasn't, then you're handling errors like in C.. ugh


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

Search: