precept icon indicating copy to clipboard operation
precept copied to clipboard

Need to resolve aliased and fully-qualified symbols in macros

Open alex-dixon opened this issue 7 years ago • 0 comments

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.

alex-dixon avatar May 22 '17 14:05 alex-dixon