mirror of
https://github.com/kanaka/mal.git
synced 2024-09-11 13:55:55 +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
|
;=>7
|
||||||
(unless true 7 8)
|
(unless true 7 8)
|
||||||
;=>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)
|
(unless2 false 7 8)
|
||||||
;=>7
|
;=>7
|
||||||
(unless2 true 7 8)
|
(unless2 true 7 8)
|
||||||
|
Loading…
Reference in New Issue
Block a user