precept
precept copied to clipboard
Need to resolve aliased and fully-qualified symbols in macros
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.