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

davesweeris at mac.com davesweeris at mac.com
Wed Apr 20 16:31:22 CDT 2016

What about enforcing the argument labels, but then adding a “@autolabel” or something in code where the current behavior is desired?

- Dave Sweeris

> On Apr 20, 2016, at 12:47 PM, 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