Arc Forumnew | comments | leaders | submitlogin
2 points by rocketnia 5133 days ago | link | parent

(eval `(= x ',foo))

Oh yeah, that does the trick. At one point I was considering doing that in my macros for hygiene, but then I realized I preferred hackability to hygiene so my code could be consistent with arc.arc, so I abandoned that idea... and somehow forgot you could even do that. XD So that should make the implementation of 'global a bit tidier--maybe even a bit less necessary.

making arc try to macroexpand lists in functional position, and then re-macroexpand if the result was a symbol

Yeah, I considered that, but as long as I could make namespaced macros work without resorting to a patch, I figured I should do that instead, since it made the code more flexible to whatever Arc implementations and patch configurations people wanted to use.