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

To have a program crash on null is a feature. There was a trend in OO caused by you know who that made people always initiate variables and return stupid things like empty lists instead of null. Among the worst APIs to work with are the ones where you never can tell when you get an empty list if something went south or if it is a correct state.


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

Search: