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

If an API is expected to return an array, but the data set is empty, I expect an empty array. I should be able to go straight from the request to a for-each loop without checking for null.



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

Search: