-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support $interpolation
?
#3
Comments
The choice of |
Interesting point. It didn't occur to me that someone could want to write a proc macro that emits macro_rules. |
I mentioned the implementation of What it does is allow using @dtolnay How do you deal with |
The quote crate does not have any syntax for escaping anything, and I don't recall anyone asking for escaping in the past 2 years. It allows
error: unknown start of token: \
--> src/main.rs:2:25
|
2 | println!(stringify!(\));
| ^ |
Yeah, This is a bit sad, as we could've introduced It overall makes me have no preference between using |
Currently, this crate follows the syntax of dtolnay/quote, where the symbol
#
is used for interpolations. I wonder if this symbol was chosen because$
would clash withmacro_rules!
.The (unstable) libproc_macro::quote uses
$
rather than#
. Would allowing this symbol as an alias to#
be beneficial? Using$
would allow a smoother transition tolibproc
oncequote
is stable.The text was updated successfully, but these errors were encountered: