Hacker News new | ask | show | jobs
by tarvaina 445 days ago
This is how Clojure does it.

https://clojure.org/guides/learn/hashed_colls#_creating_a_li...

1 comments

And iOS programming makes you fill dictionaries with alternating k,v,k,v,nil
*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.