cgrand / xforms

Extra transducers and reducing fns for Clojure(script)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

regression in 0.19.5

imrekoszo opened this issue · comments

When I try to use x/for in a defmacro I get the following error:

; clojure -Sdeps '{:deps {net.cgrand/xforms {:mvn/version "0.19.5"}}}' -M -e '(do (require \'[net.cgrand.xforms :as x]) (defmacro foo [] (x/for [a _] a)))'
Syntax error compiling at (REPL:1:59).
No such var: net.cgrand.xforms/MapEntry

It works with 0.19.4:

; clojure -Sdeps '{:deps {net.cgrand/xforms {:mvn/version "0.19.4"}}}' -M -e '(do (require \'[net.cgrand.xforms :as x]) (defmacro foo [] (x/for [a _] a)))'
#'user/foo

Fixed in 0.19.6:

; clojure -Sdeps '{:deps {net.cgrand/xforms {:mvn/version "0.19.6"}}}' -M -e '(do (require \'[net.cgrand.xforms :as x]) (defmacro foo [] (x/for [a _] a)))'
#'user/foo