[swift-evolution] Opt-out for first unnamed parameter instead of opt-in

Howard Lovatt howard.lovatt at gmail.com
Mon Feb 8 16:17:00 CST 2016


+1 from me. As an aside: there is a lot of discussion about this sort of
thing in the API guideline threads.

On Tuesday, 9 February 2016, Vanderlei Martinelli via swift-evolution <
swift-evolution at swift.org> wrote:

> The “send” button was pressed before I finish the message, I’m sorry.
>
> Continuing:
>
> With
>
> func myOtherMethod(_ something: AnyObject)
>
>
> Regards,
>
> -Van
>
> On Mon, Feb 8, 2016 at 7:54 PM, Vanderlei Martinelli <
> vmartinelli at alecrim.com
> <javascript:_e(%7B%7D,'cvml','vmartinelli at alecrim.com');>> wrote:
>
>> Hello.
>>
>> I think this was discussed before somewhere and I do not know what the
>> conclusion was, but since we have this in the documentation:
>>
>> func addSubview(_ view: UIView)
>>
>> And we have to write this:
>>
>> func addSubview(view: UIView)
>>
>>
>> Why we can not stay with the first one that is more consistent? The
>> impact is to replace declarations like:
>>
>>
>> func myMethod(something something: AnyObject)
>>
>> With
>>
>> func myMethod(something: AnyObject)
>>
>>
>> And replace:
>>
>> func myOtherMethod(something: AnyObject)
>>
>> With
>>
>> func myOtherMethod(_ somethings: AnyObject)
>>
>>
>

-- 
  -- Howard.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160209/aecba056/attachment.html>


More information about the swift-evolution mailing list