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

It may not be a conventional null, but I'm not aware of any tech where calling "count" on a Null, .nil? or otherwise null-like construct won't end horribly.



The Facebook SDK is written in obj-c, where calling `count` on `nil` is perfectly valid and returns 0. It only doesn't work on NSNull, which is a weird different thing that does not work like the language's built-in null.




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

Search: