Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to resolve aliased and fully-qualified symbols in macros #55

Open
alex-dixon opened this issue May 22, 2017 · 0 comments
Open

Need to resolve aliased and fully-qualified symbols in macros #55

alex-dixon opened this issue May 22, 2017 · 0 comments

Comments

@alex-dixon
Copy link
Contributor

Currently we assume users have referred symbols from the DSL namespace. When analyzing LHS syntax, we check for their unqualified existence and "resolve" them to precept.dsl by prepending "precept.dsl/" and call eval to get the expansion of the fully qualified symbol.

This will not work if a user aliases or fully qualifies any DSL macro.

For CLJ suggest using ns-resolve though I'm fuzzy on whether this works at compile time. For CLJS suggest looking at Planck's repl.cljs ns https://github.com/mfikes/planck/blob/master/planck-cljs/src/planck/repl.cljs#L354.

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

No branches or pull requests

1 participant