On 5 March 2011 20:35, Timothy Washington <twash...@gmail.com> wrote:
> I've actually been thinking about that. And from what I can tell, LISP DSLs
> are simply extensions to the LISP language. But maybe I still haven't gotten
> my head wrapped around 'defmacros' and how they implements DSLs. It seems to

Please note that "DSLs in Lisp" doesn't automatically mean "defmacro".
I found Christophe Grand's treatise on this topic enlightening:

http://vrac.cgrand.net/DSL.pdf

Apparently it's easy to fall into the trap of building your DSL mostly
around macros, which limits the composability and dynamism you would
get by using functions instead. Some real-world project that got
bitten by this fallacy include ClojureQL, lazytest and Enlive, where
at some point during development, large parts got scrapped and rebuilt
using less macros:

http://bestinclass.dk/index.clj/2010/11/clojureql--revolutions.html
http://stuartsierra.com/2010/07/31/slightly-less-typed-assertions
http://github.com/cgrand/enlive/commit/944312b1621ac5cf20bf306d2a7f0653fc2ee519

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to