-
Notifications
You must be signed in to change notification settings - Fork 98
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
Specify the convenience method for List multiple assignment #638
Conversation
First pass at adding multiple assignment for lists. Comments and critiques are very much welcomed |
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.
Nice, thanks for tackling this!
Should we also add an example where we have a size check before assignment? |
1155aff
to
a11b6ed
Compare
a11b6ed
to
dc49294
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.
@domenic thoughts?
I wonder if we should allow this same syntax to be used for splitting up a tuple. At least it was argued in the issue that using parenthesis here might not be clear enough and there's no need for disambiguation anyway.
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.
LGTM with nits. Thanks for adding this!
Add documentation and a example to specify and document List mulitple assignment.
dc49294
to
adb1895
Compare
Co-authored-by: Domenic Denicola <[email protected]>
Add documentation and a example to specify and document List mulitple assignment.
Fixes: #509
CC: @inexorabletash
Preview | Diff