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

Implement destructoring structs on "let" and "for" statement target #509

Merged
merged 1 commit into from
Jul 5, 2021

Conversation

Kijewski
Copy link
Contributor

@Kijewski Kijewski commented Jul 1, 2021

Depends on #506.

@Kijewski
Copy link
Contributor Author

Kijewski commented Jul 2, 2021

Rebased on #506.

@Kijewski Kijewski changed the title [WIP] Implement destructoring structs on "let" and "for" statement target Implement destructoring structs on "let" and "for" statement target Jul 2, 2021
This PR implements the destructoring of structs on the lhs of "let" and
"for" statements.
@djc djc merged commit 7e22790 into djc:main Jul 5, 2021
@djc
Copy link
Owner

djc commented Jul 5, 2021

Thanks again! Do you have any more short-term plans for adding stuff?

@Kijewski Kijewski deleted the pr-destructoring-structs branch July 5, 2021 12:18
@Kijewski
Copy link
Contributor Author

Kijewski commented Jul 5, 2021

You're welcome! All my short-term plans are fulfilled.

In a week (or most likely later) I'd like to unify parser.rs' match_variant() and target(), so that match … with … can parse (almost) every valid pattern.

I think #513 (Better error messages using cuts) would be a nice-to-have, too, but right now I don't have the time to test it properly.

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.

None yet

2 participants