add literal syntax for patterns
Proposed syntax is $[]
so the macro:
macro m {
case ($x:expr $[...]) => { ... }
}
will match an expression followed by an ellipses, not multiple exprs.
Proposed syntax is $[]
so the macro:
macro m {
case ($x:expr $[...]) => { ... }
}
will match an expression followed by an ellipses, not multiple exprs.