clojurejs
clojurejs copied to clipboard
Macro expanders across multiple clojurejs scripts will collide
Since macro expanders are kept in a single global ref, macros with the same name in different clojurejs scripts will overwrite one another, which is bad. Since, macro definitions need to be persistent across multiple HTTP requests, using a thread local binding isn't a sufficient solution.
One idea is to implement a minimal ns
form in clojurejs, which could establish the namespace for a given clojurejs script, and keep the macro definitions independent.