-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Tuple's are not allowed as lvalues #10174
Comments
I was under the impression we weren't allowing this for grammar reasons. |
We can translate |
If anybody is still interested in this, an official RFC should be filed. https://github.com/rust-lang/rfcs/blob/master/active/0001-rfc-process.md |
@Aatch Are you closing all issues tagged as |
@adrientetar not all, just a few that clearly should go through the new RFC process, I only did 7. |
@Aatch Well this is a feature request and not a proposed implementation so it is not going to go any further. |
RFCs are not (just) for proposed implementations but rather extensions to the language, which is exactly what this is. |
hotfix: remove `ITER_COUNT` since it is not called `&paths:ITER_COUNT` is not being called from anywhere, so removing it doesn't seem to be a problem. --- changelog: none
Currently, this is unimplemented:
The line
(x,y) = (3,4);
will trigger an error.This is allowed in Python for example and can come in handy:
Here, b allocated value depends on a and vice-versa. Not sure how this translates into lower-level code but at least here it spares an alloc and a line of code.
Also, being able to allocate a tuple from a function would come in handy, cf. #7507#issuecomment-23618416.
See #7507, #7508, #10123.
The text was updated successfully, but these errors were encountered: