News for hackers. Stuff that matters.
Re:The Brilliance of “nil” in Objective-C by divingdragon on Friday April 29, 2022 @05:26AM (#31203145)
I would rather have my program hard crash on unexpected null than to have it silently ignore potential logic errors. I have never used a language with nil punning, but to me Option<T> still feels to be the best approach.
Re:The Brilliance of “nil” in Objective-C by CraigJPerry on Friday April 29, 2022 @05:59AM (#31203315)
It’s a small example and won’t claim it’s life changing but if you get a spare hour some time, i’d definitely vote for broadening experience horizons and playing with an example.

Specifically to your point about the hard crash, I’m interpreting this as meaning “i want the programmer to be told they’re mistaken”, if I’ve got that right, you’ll be pleasantly surprised.