[swift-evolution] [Proposal][Discussion] Deprecate Tuple Shuffles
Adrian Zubarev
adrian.zubarev at devandartist.com
Fri May 5 07:16:55 CDT 2017
I don’t understand your question. Those two lines of code should be an error and it’s exactly what the current draft is trying to fix.
This behavior is truly inconsistent.
--
Adrian Zubarev
Sent with Airmail
Am 5. Mai 2017 um 14:07:11, André Videla (andre.videla at gmail.com) schrieb:
If you assume that label order is important why would you expect this to typecheck?
let (y: a, x: b) = (x: 1, y: 2)
let pair: (y: Int, x: Int) = (x: 1, y: 2)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170505/8f4a8c18/attachment.html>
More information about the swift-evolution
mailing list