[swift-evolution] [Pitch] Enforce argument order for defaulted parameters
Sean Heber
sean at fifthace.com
Wed Mar 30 12:07:18 CDT 2016
I use this feature from time to time, but not usually intentionally. I appreciate that it doesn't force me to rearrange a bunch of parameters at call sites just because I happen to change the order of them in the function declaration, though.
l8r
Sean
Sent from my iPhone
> On Mar 30, 2016, at 11:59 AM, Joe Groff via swift-evolution <swift-evolution at swift.org> wrote:
>
> Many people are surprised when they find out defaulted parameters can be reordered, unlike required arguments. This special case adds complexity to the language, and runs against our general trend of treating argument labels as a significant part of an API's name, and preferring a single way of writing API calls. I think it's worth revisiting this design choice—is the special case worth the complexity? How many people take advantage of default argument reordering?
>
> -Joe
> _______________________________________________
> 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