Comment

Comment by jon889

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

parent jon889 4 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton