18969, "bradcray", "Support initialization of / assignment to tuples via iterable expressions?", "2022-01-12T15:16:43Z"
Since tuples support iteration:
for e in (1, 2, 3) do ...
I often find myself thinking that I should be able to initialize a tuple or assign to a tuple using an iterable expression as well, for example:
// or any of these without the `var` or with a singleton tuple variable `my3Tuple`
var (i1, i2, i3) = [i in 1..3] i;
var (a1, a2, a3) = A[1..3];
var (s1, s2, s3) = "I'm a tuple".split(" ");
since it feels like a form of zippered iteration. Should we support such forms?