@Vadim Petrochenkov while working on jointness-preserving mbe, I've noticed that proc macro tt stores jointness as a field of
libsyntax::TokenStream stores jointness as
TreeAndJoin. Do you think it might make sense to move jointness to the
Token in libsyntax as well? That certainly would make it harder to lose jointness along the way, and should be easier to work with, as matching
(tree, is_joint) tuple is awkward.
Do you think it might make sense to move jointness to the Token in libsyntax as well?
Yes, I think that makes sense.
I thought about it when implementing #61541, and wanted to do it myself later, but it didn't happen.
IIRC, it doesn't even increase the size of
Token, but I'm not sure.