Re:Ask PG: Lisp vs Python (2010)
by akkartik on Tuesday October 19, 2010 @01:18AM
(#1806306)
Why do you miss dictionary literals? Syntax similar to arc's seems to do it for me:
[ Parent
| on HN ]
We do the same thing:
(make :a 1 :b 2 :c 3)
which macroexpands into a plist in CL and {a:1, b:2, c:3} in JS. I've grown to like this idiom a lot. Yeah, you have to type OBJ or MAKE or whatever but in return you get something that integrates completely smoothly with the rest of the language.