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

Vanderlei Martinelli vmartinelli at alecrim.com
Mon Feb 8 15:54:34 CST 2016


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)


func myMethod(something: AnyObject)

And replace:

func myOtherMethod(something: AnyObject)


func myOtherMethod(_ somethings: AnyObject)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160208/789813c3/attachment.html>

More information about the swift-evolution mailing list