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
6
914
May 7, 2020
Why are bracket types so loosely checked in macro definitions and invocations?
15
1792
October 23, 2020
What is `vec!()`? Is there a diff vs. `vec![]`?
help
13
2817
February 19, 2022
Square brackets in compiler code
help
2
451
December 29, 2019
Exclamation ! mark ! for ! macros ! feels ! kinda wrong?
49
3957
January 23, 2023