logoalt Hacker News

Me1000yesterday at 4:42 PM1 replyview on HN

You can send messages to null, sendings messages to a deallocated pointer is going to be a bad time.


Replies

e28etayesterday at 5:30 PM

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