[swift-evolution] [Proposal][Discussion] Deprecate Tuple Shuffles
Adrian Zubarev
adrian.zubarev at devandartist.com
Fri May 5 05:21:46 CDT 2017
You’ve got your manual reordering wrong:
let a = (x: 1, y: 2)
var b: (y:Int, x:Int)
b = a // warning
b = (x: a.x, y: a.y) // explicit, manual reordering
It should be:
b = (y: a.y, x: a.x) // explicit, manual reordering
--
Adrian Zubarev
Sent with Airmail
Am 5. Mai 2017 um 11:48:50, Haravikk via swift-evolution (swift-evolution at swift.org) schrieb:
let a = (x: 1, y: 2)
var b: (y:Int, x:Int)
b = a // warning
b = (x: a.x, y: a.y) // explicit, manual reordering
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170505/b18b0065/attachment.html>
More information about the swift-evolution
mailing list