You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are starting to support languages that support multiple returns and assignments of return values, such as Golang and Python.
How should we deal with them? Currently, for our experimental Golang support, we only take the type of the first return value. Should we introduce a TupleType which then holds the individual types? We also then need to take this into consideration when the individuals of a tuple are assigned to a variable like a, b := myFunc().
This discussion was converted from issue #360 on March 20, 2021 16:27.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We are starting to support languages that support multiple returns and assignments of return values, such as Golang and Python.
How should we deal with them? Currently, for our experimental Golang support, we only take the type of the first return value. Should we introduce a
TupleType
which then holds the individual types? We also then need to take this into consideration when the individuals of a tuple are assigned to a variable likea, b := myFunc()
.Any ideas, @konradweiss, @maximiliankaul?
Beta Was this translation helpful? Give feedback.
All reactions