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

Cannot capture for loop expressions #151

Closed
darsnack opened this issue Nov 10, 2020 · 2 comments
Closed

Cannot capture for loop expressions #151

darsnack opened this issue Nov 10, 2020 · 2 comments

Comments

@darsnack
Copy link
Member

Currently, it seems like the following does not work:

@capture(ex, for itr_ body_ end)

Is there a blocking reason for this? Would it be straightforward to add support?

@cstjean
Copy link
Collaborator

cstjean commented Nov 10, 2020

Shouldn't it be for var_ in itr_; body__ end?

@darsnack
Copy link
Member Author

Yeah that works.

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