Skip to content
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

Why #var instead of $var? #22

Closed
withoutboats opened this issue Jan 16, 2017 · 2 comments
Closed

Why #var instead of $var? #22

withoutboats opened this issue Jan 16, 2017 · 2 comments

Comments

@withoutboats
Copy link

I was wondering why quote uses #var interpolation syntax instead of $var. My guess is that this is a limitation of the macro_rules system and not an intentional design decision. Is that correct? Is this a limitation that could be revisited in macros 2.0?

@dtolnay
Copy link
Owner

dtolnay commented Jan 16, 2017

It is a limitation of macro_rules and could be revisited in macros 2.0. See the three comments starting at rust-lang/rust#35900 (comment).

@withoutboats
Copy link
Author

Thanks for the answer. I think we want to revisit how matching happens in 2.0 in general, its currently got a lot of limitations that could probably be rebalanced based on our experience with macro_rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants