Conversation

This Tweet was deleted by the Tweet author. Learn more
Usage or implementation of macros? The usage is just macro!(tokens), and the syntax within it is determined by how the macro defines the DSL. Implementing macros is definitely not pretty for anything complex, as you're messing with a token tree rather than it being normal code.
1
1
If I remember correctly, the reason declarative macros are currently defined with macro_rules! is because there wasn't time to make a good implementation for 1.0 so that was kept as a compromise rather than not having it at all. The macro keyword is reserved for a replacement.
1
So, the usage of macros will remain the same as it is now, but macro_rules! is going to be replaced. Procedural macros are also still an experimental feature reserved for the compiler outside of nightlies but that's a really nice feature and just hasn't been standardized/frozen.
1
The usage of them would remain the same though. It's the syntax for defining them that will be replaced. I think the syntax of macro!(tokens) is completely fine. Procedural macros are just Rust code so they don't have the same issue of needing special syntax designed for them.