Proper import scoping for macros
lihaoyi opened this issue · 2 comments
lihaoyi commented
Currently this:
from my_module import macros, ...
just imports everything from that module, and activates all the macros, regardless of what's in the ...
. This should be changed to
from my_module import macros, mac_a, mac_b
where only the macros which are explicitly listed get activated, while allowing for aliases:
from my_module import macros, long_macro_name as mac
lihaoyi commented
Proper lexical scoping via symbolic execution would be nice, but is probably extremely hard to do