[details=Obsolete]One question I was left with though is what a
TokenStream might look like for what are currently
MultiDecorator macros over something like a
If we don’t want procedural macro writers interacting with
libsyntax directly, then how can they interpret the stream as a
struct item? Will they have to parse the token stream as a struct themselves to, for instance, iterate over the
structs fields? Or would there be some representation like
VariantData that the stream could be parsed as?
I’m interested to know how much semantic meaning a stream will have available, and how much you have to work out for yourself.
Or am I completely misguided on how it’s all going to work?[/details]
EDIT: Just found this RFC discussion.
My question now is: any idea when procedural macros 1.1 are likely to be a thing? It looks like they’re on the way.