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 let-else statements #162

Merged
merged 4 commits into from
Nov 3, 2022
Merged

Conversation

kawaemon
Copy link
Contributor

@kawaemon kawaemon commented Nov 2, 2022

let_else feature is going to be stabilized on Rust 1.65.0.
This PR adds support for it.

kawaemon and others added 4 commits November 2, 2022 22:50
Also rename 'let_else_block' field to 'alternative' to be more
consistent with else blocks in if expressions
@maxbrunsfeld
Copy link
Contributor

Thanks for this PR! I pushed a small tweak to your branch, using an associativity to avoid needing runtime conflict-resolution, and reduce the size of the parser by a small amount.

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

Successfully merging this pull request may close these issues.

2 participants