Hi there! I'm fairly new to rust and trying to wrap my head around macros. I've read both the Rust Programming Language book's section on macros as well as went through Trailing separators and still can't seem to quite understand what I'm doing wrong here.
I was wondering if it's possible to have the final semicolon optional? It's not a deal breaker to have them always required. It's more of me trying to understand the language and how macros work.
Would I need to create a 2nd branch? Some of the macro and repetition syntax is still voodoo to me.
I didn't noticed it but it just work.
EDIT: nevermind, I missed the empty row in the output. I've tested it with $(;)? pattern at the end, but it doesn't work in the same reason why the below compiles.
So now the question is, how can we distinguish a sequence with trailing semicolon and a sequence that ends with empty vector and without trailing sequence.