mirror of
https://github.com/kanaka/mal.git
synced 2024-08-16 17:20:23 +03:00
Merge pull request #387 from asarhaddon/test-macroexpand-no-quasiquote
test macroexpand without assuming that quasiquote is a special form
This commit is contained in:
commit
38daa6955b
@ -12,7 +12,7 @@
|
||||
;=>7
|
||||
(unless true 7 8)
|
||||
;=>8
|
||||
(defmacro! unless2 (fn* (pred a b) `(if (not ~pred) ~a ~b)))
|
||||
(defmacro! unless2 (fn* (pred a b) (list 'if (list 'not pred) a b)))
|
||||
(unless2 false 7 8)
|
||||
;=>7
|
||||
(unless2 true 7 8)
|
||||
|
Loading…
Reference in New Issue
Block a user