In Common LISP you can do the following
(macro lambda (x) (list (quote car) (list (quote cdr) x)))
It looks like this is not possible (an anonymous macro) in Clojure.
- Is this true?
- Why was this left out?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is some
macrolet(or other things) inclojure.contrib.macro-utils. However it smells a little like a hack to me. Inclusion inclojure.coreis on the TODO radar, but doesn’t have high priority at the moment.EDIT: See also here http://dev.clojure.org/display/design/letmacro.