Sorry for wrecking the threading, but any chance we could change the syntax to:
let (x myX: Int, y myY: Int) = ... That would ensure the identifier after the colon was always treated as a type. I suppose if you wanted to infer the type, it'd be: let (x myX, y myY) = ... -- Brent Royal-Gordon Sent from my iPhone > On May 5, 2017, at 12:04 AM, Adrian Zubarev via swift-evolution > <swift-evolution@swift.org> wrote: > > If we ban reordering now, than I don’t see choosing different names in tuple > destructuring as a strong argument of allowing labels there let (x: a, y: b). > They’re literally the same as one would write comments inside the > destructured tuple let (/* my x */ x, /* my y*/ y).
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution