3 ms·
We can throw away colons too. Dictionaries will be sequences of “key””value””key””value” Just because we can throw away redundancy doesn’t mean we should
by leshenka 2y ago
We can throw away colons too. Dictionaries will be sequences of “key””value””key””value”
Just because we can throw away redundancy doesn’t mean we should
- tarvaina 2y agoThis is how Clojure does it. https://clojure.org/guides/learn/hashed_colls#_creating_a_literal_map https://clojure.org/guides/learn/hashed_colls#_creating_a_li...
- EGreg 2y agoAnd iOS programming makes you fill dictionaries with alternating k,v,k,v,nil
- frizlab 2y ago*The Swift language (not only iOS programming at all) *it is one way of initializing a dictionary. Literal way has a closer to JSON form. EDIT: Oh you seem to be talking about ObjC it seems! I did not see the nil. Literal way is still more akin to JSON though.