News for hackers. Stuff that matters.
Re:Lisp is Abstract Syntax by dreamcompiler on Thursday April 17, 2014 @06:30PM (#7606911)
This one of the reasons why, as a Lisp programmer, I don't care much for Clojure. Three different bracketing constructs when one would do just fine. Now I have to go look up the difference between () and {} and [] just to emit some HTML.
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.
Re:Lisp is Abstract Syntax by wonderzombie on Thursday April 17, 2014 @08:18PM (#7607324)
That's funny. This is one of the reason why I don't care much for Common Lisp. Hashtables in particular are common as mud in programming, but I have to work with a clunky interface specific to each abstraction. Ironically this puts CL closer to Java and C++ than the likes of Python and Ruby.
Re:Lisp is Abstract Syntax by lispm on Friday April 18, 2014 @02:44AM (#7608204)
Hashtables are common, if one does not have other choices.

For many uses of hashtables, lists are just as good.