Syntax for shortening deconstruct. #942
Unanswered
MkazemAkhgary
asked this question in
General
Replies: 3 comments
-
The first case of deconstructing when calling a method sounds similar to #424. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@yaakov-h |
Beta Was this translation helpful? Give feedback.
0 replies
-
See also #153 for the first case. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The syntax for deconstruct is like this
its good, but you cant inline these
following are ways to allow deconstruct in various cases.
Deconstruct in method arguments:
Deconstruct in method returns
Remark
var(x, y)
is basically extractor of value tuple such as(? x, ? y) t
. therefor tuple could be also passed in method withvar(? x, ? y)
as argument. and can also be used as return value.Beta Was this translation helpful? Give feedback.
All reactions