syntax of tuple desturcturing in for loops aside, what I’d really love to have is being able to switch on multiple things at once. some thing like this
const E = enum {
a,
b,
c,
};
const F = enum {
d,
e,
f,
};
const e: E = .a;
const f: F = .d;
switch (e,f) {
.a, .d => // etc
}
I am aware of the many rought edges of this specially the inline else having two payloads and whatnot .. but it would be nice ..