2 ms·
> Is this a "procedural" macro? This is not a procedural macro, it's a regular-old macro. > Does Rust specifically target writing DSLs using its macro sys
by steveklabnik 11y ago
> Is this a "procedural" macro?
This is not a procedural macro, it's a regular-old macro.
> Does Rust specifically target writing DSLs using its macro system?
I would say that "specifically" is a bit strong, but they are one application of them, yes.
> Can we expect macros like this to continue working for a long time?
This functionality runs on Rust stable, and therefore should continue working forever.
The post you're referring to is talking about procedural macros/syntax extensions/compiler plugins, which are not stable and will see lots of change.
We also may end up with a new macro system as well, but it will not conflict with the existing macro system if we do.