Y
Hacker News
new
|
ask
|
show
|
jobs
by
jon889
1514 days ago
I don’t see how it’s that different to Swift? All that would be needed is a ? after `dict` and a direct comparison to true.
dict.containsObjectForKey[@"a"]
Becomes roughly
dict?.containsObjectForKey(“a”) == true