Closed
Description
module MM
using MacroTools: @capture
@capture(:(x=2), _lhs = _rhs)
end
> UndefVarError: MacroTools not defined
It works if I import MacroTools. In my code, I usually fix this by writing function calls like $MacroTools.foo(...)
, but I don't use hygiene so I'm not sure if it's applicable in your case.
This is still definitely one of the most useful Julia packages for me, thank you!
Metadata
Metadata
Assignees
Labels
No labels