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

100% agree. “Error” is as big and ambiguous as “success”. What should a successful function return? True / false? An object? A URI? Nothing?

There is no rule of thumb because the scenarios are too varied and context matters.



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

Search: