[swift-evolution] [Pitch] Make the first parameter in a function declaration follow the same rules as the others

Jordan Rose jordan_rose at apple.com
Fri Mar 11 13:20:48 CST 2016


> On Mar 10, 2016, at 15:34 , Dave Abrahams via swift-evolution <swift-evolution at swift.org> wrote:
> 
> on Wed Mar 09 2016, Jordan Rose <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
> 
>> This is my concern too. Our guidelines often lead to the first
>> parameter having a label, but usually that name isn't the same as the
>> name of the parameter—one's a preposition, the other's a noun. I'm
>> pretty sure the common case is still unlabeled. 
> 
> It's about 50/50 (slight edge to labeled first parameters) in the
> imported Cocoa APIs.

If it's easy to get these numbers, how many of the first parameters have the same label as the parameter name?

Jordan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160311/8ca28c4d/attachment.html>


More information about the swift-evolution mailing list