4 ms·
As a followup, could the helper attributes feature be implemented to work how you thought it did, enough that most proc macros might want to start using it? =)
by tux3 2y ago
As a followup, could the helper attributes feature be implemented to work how you thought it did, enough that most proc macros might want to start using it? =)
The author does have a good point when they note that the C++ compiler does the parsing and the "serde intermediate representation" for them, it's pretty nice to not have to bring your own parser for everything!
Could we give proc macro authors fast compiler-backed helpers that they can use as building blocks for their proc macros?
- steveklabnik 2y agoI do not know! I would prefer more energy be put into revitalizing the reflection proposal than doing that, though of course open source is always about “who wants to do the work” and I won’t be doing either.
- mplanchard 2y agoHaving just written a proc macro, I'd even be happy with some higher level abstractions on top of syn, if anyone knows of any.