[swift-evolution] [Pitch] Enforce argument order for defaulted parameters
tseitz42 at icloud.com
Mon Apr 4 11:05:59 CDT 2016
> Am 04.04.2016 um 13:00 schrieb Ilya Belenkiy via swift-evolution <swift-evolution at swift.org>:
> I think that it’s very useful (I use it frequently in unit tests). I hope that this stays the way it is now.
Do you really use the ability to reorder the arguments or just the ability to omit any combination of default arguments?
>> On Mar 30, 2016, at 12:59 PM, 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?
>> swift-evolution mailing list
>> swift-evolution at swift.org
> swift-evolution mailing list
> swift-evolution at swift.org
More information about the swift-evolution