Unquote doesn't work inside vector syntax
Closed this issue · 1 comments
arvyy commented
Given:
(defmacro test (a) `(list #(1 ,a)))
(test 2)
I'd expect it to result (#(1 2))
but instead it gives (#(1 (UNQUOTE A)))
sasagawa888 commented
I fixed. Thank you.
(defmacro foo (a) `(list #(1 ,a)))
;(foo 2)
;return (#(1 2))
(defmacro bar (a) `(list #2a((1 ,a)(2 , a))))
;(bar 3)
;(#2a((1 3) (2 3)))
> (foo 2)
(#(1 2))
> (bar 3)
(#2a((1 3) (2 3)))
>