We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Users can't destructure tuples.
e.g.
(foo, bar): (u256, bool) = my_tuple
Implement destructuring in the lowering pass. The example statement above should be lowered to the following:
foo: u256 = my_tuple.item0 bar: bool = my_tuple.item1
edit: The above lowering would evaluate the expression twice, which is something we need to watch out for.
What we want is something like:
low_tuple: tuple_u256_bool = my_tuple foo: u256 = low_tuple.item0 bar: bool = low_tuple.item1
The text was updated successfully, but these errors were encountered:
Y-Nak
Successfully merging a pull request may close this issue.
What is wrong?
Users can't destructure tuples.
e.g.
How can it be fixed
Implement destructuring in the lowering pass. The example statement above should be lowered to the following:
edit: The above lowering would evaluate the expression twice, which is something we need to watch out for.
What we want is something like:
The text was updated successfully, but these errors were encountered: