(defmacro swap-order [a b] ~(let [tmp# ,a] [,b tmp#])) (defmacro two-forms [] [~tmp# ~tmp#]) (defmacro pair-names [] ~(let [a# 1 b# 2] [a# b#])) (let [tmp 5] (swap-order tmp 2)) (macroexpand-1 `(swap-order tmp 2)) (macroexpand-1 `(two-forms)) (macroexpand-1 `(pair-names))