Closed vldm closed 1 year ago
I don't know any other way to implement this, but I would be prepared to consider a PR if someone else has a way.
Thanks, for fast response. Maybe implementation on procedural macro can solve this? Is there any reason to keep quote declarative?
I have found few issues https://github.com/dtolnay/quote/issues/82 https://github.com/dtolnay/quote/issues/113 that mention, that the main purpose is the speed.
Do you have some repo for benchmarks(or guide how one can measure perfomance of its own macro)? (very interested to apply it for my project)
During testing custom punctuation in
syn
, i have found that it is impossible to write tests usingquote
. Debugging lead me to the minimal test:Output:
If i understand correctly, Rustc will produce
Spacing::Joint
for similar token stream.