clojurejs icon indicating copy to clipboard operation
clojurejs copied to clipboard

Macro expanders across multiple clojurejs scripts will collide

Open kriyative opened this issue 14 years ago • 0 comments

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.

kriyative avatar Jan 12 '11 18:01 kriyative