Accepted Proposal
Tuple is a powerful construct in modern language when one doesn't want to define a struct simply to return/pass grouped information. I'd like to be able to do:
val (div, rem) = divWithRemainder(25, 9);
Not sure if this should be part of the language or simply baked in the standard library, e.g like scala where they define Tuple2(inline A: type , inline B: type). They do have sugaring that can extract in the val (x, y) = expr construct though.
Accepted Proposal
Tuple is a powerful construct in modern language when one doesn't want to define a struct simply to return/pass grouped information. I'd like to be able to do:
Not sure if this should be part of the language or simply baked in the standard library, e.g like scala where they define
Tuple2(inline A: type , inline B: type). They do have sugaring that can extract in theval (x, y) = exprconstruct though.