I think the problem is that parsing of a = b
is context dependent, either Expr(:=, ...)
in normal cases or Expr(:kw, ...)
after ;
in function definitions and named tuples. And AFAIK there is no easy way to create a list of Expr(:kw)
to splat after the ;
except with the literal syntax :((; a = b, c = d))
but here we want to do it programmatically.
1 Like