3 ms·
NSNull is used to store nulls in NSDictionaries when you really want them to, since they don't allow storing `nil`. An example being decoding JSON, which does a
by astrange 5y ago
NSNull is used to store nulls in NSDictionaries when you really want them to, since they don't allow storing `nil`. An example being decoding JSON, which does allow it.
- happytoexplain 5y agoI was thinking that counted as one of the "Obj-C APIs that haven't been updated yet", but I guess it's not actually going away since it's qualitatively different from Swift's Dictionary (being a reference type instead of a value type).