I'm trying to generator fn through macro.But I meet a strange issue. Code is Here.
(defmacro test2 [lmk]
(fn [lmk2] (println lmk lmk2)))
((test2 12) 13) ;;----->Error
(defmacro test3 []
(fn [lmk] (println lmk)))
((test3) 12) ;;----->OK
(defmacro test4 []
`(fn [lmk] (println lmk)))
((test4) 12) ;;----->Error
I know defn can work well.I just want to know why I can't use defmacro here.And why test3 works well,however test2 fails.