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
890
May 7, 2020
Why are bracket types so loosely checked in macro definitions and invocations?
15
1722
October 23, 2020
Square brackets in compiler code
help
2
447
December 29, 2019
Exclamation ! mark ! for ! macros ! feels ! kinda wrong?
49
3779
January 23, 2023
Macros in Rust language
help
7
906
January 12, 2023