3 ms·
That doesn't seem nice if the map wasn't supposed to be nil (if you assume that failing fast on buggy behaviour is good). But I guess you might want to, on purp
by Dewie 12y ago
That doesn't seem nice if the map wasn't supposed to be nil (if you assume that failing fast on buggy behaviour is good). But I guess you might want to, on purpose, instantiate and use a map which is nil?
- NateDad 12y agoWhat's the difference between a nil map and a non-nil but empty map? You asked if the map had a value for your key, and it said no.
- Dewie 12y ago> What's the difference between a nil map and a non-nil but empty map? A nil map is the absence of a map. An empty map is an empty map. The distinction is clear.