Map entries become vectors when piped thru a macro
- by Gavin Grover
In Clojure, a map entry created within a macro is preserved...
(class (eval `(new clojure.lang.MapEntry :a 7)))
;=> clojure.lang.MapEntry
...but when piped thru from the outside context collapses to a vector...
(class (eval `~(new clojure.lang.MapEntry :a 7)))
;=> clojure.lang.PersistentVector
This behavior is defined inside LispReader.syntaxQuote(Object form) condition if(form instanceof IPersistentCollection).
Does anyone know if this is intended behavior or something that will be fixed?