The Rust Programming Language Forum
Braces, square brackets and parentheses in macro-call?
help
sfackler
July 22, 2017, 3:32pm
7
No, the macro doesn't know if it was called with
[]
{}
or
()
.
show post in topic
Related topics
Topic
Replies
Views
Activity
What macro rules treat `()`, `[]` and `{}` all the same?
help
5
1149
February 7, 2020
What is `vec!()`? Is there a diff vs. `vec![]`?
help
12
3733
November 21, 2021
Why are bracket types so loosely checked in macro definitions and invocations?
14
2535
July 25, 2020
Declare macro with usage similar to macro_rules
help
2
580
June 6, 2019
Square brackets in compiler code
help
1
517
September 30, 2019