News for hackers. Stuff that matters.
Re:Lisp is Abstract Syntax by gfodor on Thursday April 17, 2014 @06:40PM (#7606960)
No, you wouldn't. Idiomatically [] is used for declarative structures for consumption by macros (like argument lists) and {} is obviously a map, and is used for any key/value pairs. So the HTML DSL linked above is the most intuitive one to a clojure programmer with regard to the data structures used. Adding maps and vectors to be first-level syntax to clojure is one of my favorite things about the language.
Re:Lisp is Abstract Syntax by hga on Thursday April 17, 2014 @06:56PM (#7607042)
As an old Lisp hand, while I'd prefer those declarative structures to be in old fashioned parens, it's not too obnoxious and has some clarity value in adding it as language syntax. But I agree 100% with the value of adding to the first-level/first-class syntax, it's both clear and very convenient.