Skip to content
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.

Macro expanders across multiple clojurejs scripts will collide #1

Open
kriyative opened this issue Jan 12, 2011 · 0 comments
Open

Macro expanders across multiple clojurejs scripts will collide #1

kriyative opened this issue Jan 12, 2011 · 0 comments

Comments

@kriyative
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant