“Anything with an explanation point is a macro invocation, by the way.”
Can you explain what this means, exactly?
Can you explain what this means, exactly?
foo(bar)
This is a macro invocation: foo!(bar)
It's done this way because macros can have much more complex things inside the ()s than functions can. This helps both humans and computers parse such things. println!("something")
that's a macro println!("hello, world");
or todo!();
are macro invocations.#[Foo] struct Bar {}
baz!()
cat!{}
blah![]