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
994
May 7, 2020
What is `vec!()`? Is there a diff vs. `vec![]`?
help
13
3362
February 19, 2022
Why are bracket types so loosely checked in macro definitions and invocations?
15
2232
October 23, 2020
Declare macro with usage similar to macro_rules
help
3
517
September 4, 2019
Square brackets in compiler code
help
2
475
December 29, 2019