-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
langref: Document destructuring #21627
Conversation
ee572b5
to
942d0e5
Compare
942d0e5
to
d368279
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new text looks reasonable to me (but I'm not enough of an expert to point out if it has subtle problems). However, I am enough of an expert to point out the missing files.
Thank you for your effort! Would you mind changing the text a little so that it mentions the word "unpack" somewhere? My thinking is that a new user might learn this way that the word "unpacking" maps to "destructuring" in zig. |
I don't think introducing additional terminology is helpful, especially an ambiguous word like 'unpack', which could also refer to vector unpacking or similar concepts. |
cc @mlugg since IIRC you implemented the feature? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, these are slight nitpicks. Once they're addressed (feel free to just have GitHub commit them and I'll squash-merge this) I'll be happy to merge since it's certainly an improvement on not having this documented.
Co-authored-by: Matthew Lugg <[email protected]>
Applied as suggested, thanks! |
Resolves #18523.