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

Support patterns in quote! iterators #582

Open
ModProg opened this issue Jul 18, 2023 · 0 comments
Open

Support patterns in quote! iterators #582

ModProg opened this issue Jul 18, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ModProg
Copy link
Contributor

ModProg commented Jul 18, 2023

Not sure if I'm using the right word.

In rust's quote you can do

quote!(#(#the-iterator ;)*)

while in rune it would have to be

quote!(#(quote!(#the-iterator ;))*)

while being able to use #() for expressions is powerful, it would be nice if there could be a way to support the rust style quote as well. maybe one could use () for one thing and {} for the other? not sure.

@udoprog udoprog added the enhancement New feature or request label Jul 19, 2023
@udoprog udoprog changed the title quote should support patterns in iterators Support patterns in quote! iterators Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants