Pre-RFC: at most one repetition macro patterns

Why is $b2 expanded using *?

There is ambiguity: $($x:ident)?+ today matches a?b?c and not a+. Fortunately this is easy to resolve: you just look one more token ahead and always treat ?* and ?+ to mean separate by the question mark token.

$($x:tt){2,7} :wink:

1 Like