Open nschloe opened 2 years ago
Right now, macro args are represented as
ParsedMacroArgs( argspec="{", argnlist=[...], )
where len(argspec) == len(argnlist). My suggestion would be to slightly alter this structure to
len(argspec) == len(argnlist)
[ MacroArg( argspec="[", arg=#... ), MacroArg( argspec="{", arg=#... ), ]
This has the advantage that illegal state are irrepresentable (len(argspec) == len(argnlist) is implicit).
Right now, macro args are represented as
where
len(argspec) == len(argnlist)
. My suggestion would be to slightly alter this structure toThis has the advantage that illegal state are irrepresentable (
len(argspec) == len(argnlist)
is implicit).