[swift-evolution] [Discussion] Enforce argument labels on tuples

Austin Zheng austinzheng at gmail.com
Wed Apr 20 12:58:01 CDT 2016

+1 to Tino's concern. This seems like something better suited for a formal newtype style feature.


> On Apr 20, 2016, at 10:47 AM, Tino Heth via swift-evolution <swift-evolution at swift.org> wrote:
> I think it's good that the labels aren't enforced:
> This would sacrifice flexibility, and force us to write unnecessary boilerplate to "translate" labels (one library might use (height, width), and another (h, w) to express the same concept…)
> But: Objective-C had no tuples, so a final decision shouldn't happen until there is an agreement on best-practices for them...
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

More information about the swift-evolution mailing list