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

Vanderlei Martinelli vmartinelli at alecrim.com
Mon Feb 8 15:56:24 CST 2016


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> 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)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160208/21224afe/attachment.html>


More information about the swift-evolution mailing list