-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
tutorial: Compare closure argument patterns to match statements #4417
Comments
And also |
part of #11755 |
So much of this has changed, both with |
@steveklabnik there are a family of potential problems that are flagged in the reddit discussion. Here are the ones that I can identify with a quick skim:
I'm not sure if this particular ticket is actionable on its own. I would want to make sure that the guide covers the fact that |
Cool. Agreed. Since I'm working on pointers right now, that's very timely! cc #16119 |
I actually think I'm just going to make patterns their own section, after pointers. We haven't talked about anything more than just very basic usage, and |
@steveklabnik that is probably best; there are a lot of subtle details in terms of the distinction between how l-values are handled versus r-values. |
The explanation of argument patterns in closures is pretty dense. Maybe it could be explained better by comparing to a match statement.
See http://www.reddit.com/r/rust/comments/16b9wh/tutorial_question_destructuring_in_stack_closures/
The text was updated successfully, but these errors were encountered: