Closed zaphar closed 5 years ago
It would be nice if you could allow macros to modify existing tuples as a way to do macro composition easily.
example syntax might be:
let base = { ... }; let mymacro = macro(arg) => base{ new_field = arg, };
or alternatively:
let mymacro = macro(arg) => othermacro("foo"){ new_field = arg, };
This would allow a form of chaining for macro applications that avoids the hold accidental recursive macro problem.
With the change to macros/functions being any expression this is now unnecessary.
It would be nice if you could allow macros to modify existing tuples as a way to do macro composition easily.
example syntax might be:
or alternatively:
This would allow a form of chaining for macro applications that avoids the hold accidental recursive macro problem.