lihaoyi / macropy

Macros in Python: quasiquotes, case classes, LINQ and more!
3.28k stars 178 forks source link

Target lost if macro takes arguments #64

Open bdarnell opened 9 years ago

bdarnell commented 9 years ago

expand_if_in_registry calls itself recursively when a macro is used with arguments, but it doesn't preserve **kwargs. This means that you cannot use both args and target at the same time (i.e. with mymacro(x) as y:)