4 ms·
Not sure I like the sound of that. It sounds like the floating point wat of "NaN != NaN".
by efaref 10y ago
Not sure I like the sound of that. It sounds like the floating point wat of "NaN != NaN".
- koolba 10y agoOr the SQL classic: NULL = NULL It's not true or false, ... it's NULL!
- mikeash 10y agoMaking messages to nil be a no-op is certainly an "interesting" feature of Objective-C. It can make some code a lot more convenient to write, but it can also make certain bugs really difficult to track down. After having done Swift for a while, I'm a big fan of using an option type so that "reference to object" is a different static type altogether from "reference to object, or nil."
- efaref 10y agoYes, I really like Rust and the way its Option<Box<T>> decays to a nullable pointer.