Be gentle, as my macrofoo is weak.
What I'd like to do is something like this:
(defmacro foo [x] `(dosync (alter x# conj x)))
(defmacro bar [] `(let [x# (ref [])] (foo 3)))
Is this possible? I can't just (let [x ..] ..)
because of symbol capturing.
NOTE: I'm aware this example is trivial and not macro-worthy, but it's the simplest example I could come up with.