Actually no, I must correct myself here. We still need the postfix … to
indicate how we want to pass the vector.
For instance:
func foo<vector(3) T>(label v: T) { … }
foo(label: (1,2,3))
func boo<vector(3) T>(label v: T…) { … }
boo(label: 1, label: 2, label: 3)
This topic is really interesting to explore. :)
--
Adrian Zubarev
Sent with Airmail
Am 23. November 2016 um 19:50:31, Adrian Zubarev
([email protected]) schrieb:
Vectors would fully eliminate that ugly … pre-/postfix and leave it only for
ranges.
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution