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

docs: nested unpacking in for is not allowed #232

Open
tlienart opened this issue Jul 17, 2023 · 0 comments
Open

docs: nested unpacking in for is not allowed #232

tlienart opened this issue Jul 17, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@tlienart
Copy link
Owner

tlienart commented Jul 17, 2023

{{for (i, (a, b)) in enumerate(iter)}}
...
{{end}}

not supported, will have to do something like {{for (i, e) in enumerate(iter)}} {{> $e[1]}} ... (or shove that in utils)


may be possible to do in the future but difficulty is to keep track of the variable names at arbitrary depth, seems easier to just not support this for now.

@tlienart tlienart added the documentation Improvements or additions to documentation label Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant