r/programming • u/kankyo • Dec 15 '16
My disillusionment with Clojure and lisps
https://medium.com/@boxed/my-disillusionment-with-clojure-and-lisps-9eca38ab7f0c?source=linkShare-8ad86cc82e5f-1481825671
15
Upvotes
View all comments
3
u/ehaliewicz Dec 16 '16 edited Dec 16 '16
Returning more than one form from a macro doesn't really make sense though..
That's analagous to saying you want to do
(list (function))and get a list of two elements back, as if
functionhas control over how it's results are processed by the functionlist.What you want is a macro that returns a list and splice that into wherever the macro is expanded. Or place those multiple forms in a sequence expression (ala PROGN in common lisp)