1
1
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:
Joel Martin 2019-07-29 17:53:55 -05:00 committed by GitHub
commit 38daa6955b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)