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

[syntax] "for" statement with multiple containers #2

Open
momentarylapse opened this issue Jul 21, 2024 · 0 comments
Open

[syntax] "for" statement with multiple containers #2

momentarylapse opened this issue Jul 21, 2024 · 0 comments
Assignees

Comments

@momentarylapse
Copy link
Owner

It is mildly inconvenient needing to write nested loops. It gets worse when using for to unwrap optionals and having to deal with failure states:

for a in aaa
    for b in bbb
        ....
    else
        error handling...
else
    same error handling...

It would be nicer to merge for statements

for a, b in aaa, bbb
    ...
else
    ...
@momentarylapse momentarylapse self-assigned this Jul 21, 2024
@momentarylapse momentarylapse changed the title syntax: "for" statement with multiple containers [syntax] "for" statement with multiple containers Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant