Hacker News new | ask | show | jobs
by Me1000 101 days ago
You can send messages to null, sendings messages to a deallocated pointer is going to be a bad time.
1 comments

It’s nice not to crash, but unexpected null can still cause bugs in ObjC when the developer isn’t paying attention.

Having done both ObjC with nonnull annotations, and Swift, I agree that it’d be hard to forgo the having first-class support for Optionals