Re:Clojure or: How I Learned to Stop Worrying and Love the P...
by scott_s on Tuesday August 31, 2010 @05:26PM
(#1650920)
I'm unfamiliar with rspec, but the major difference between designing and implementing DSLs in Lisps versus other languages is ease of code generation. That is, actually generating new code based on what the user of the DSL supplies. In Lisp, this is done because it's trivial to receive the AST that defines what the user wants to do. Then you can generate code directly based on that AST. No need for reflection or any such trickery because it's all just lists of list.
In most other languages, if that sort of transformation is even possible, it is much less direct.
In most other languages, if that sort of transformation is even possible, it is much less direct.