> As has been discussed exhaustively in this thread, Swift 3 function labels 
> don't convey the meaning of parameters, they are almost always prepositional 
> phrases that don't make sense apart from the primary function name they are 
> attached to.

Why should there be different rules for closures and regular functions?
If labels are considered useful, they are useful in both contexts, and it 
should not be forbidden to have labels for closure parameters.

The only thing I don't like now is that labels are added when the type is 
inferred; imho that doesn't make sense in deed, and it would be more consistent 
to strip them (when labels are part of the name, this is like silently changing 
variable names to match Hungarian notation ;-).

I'd hardly oppose anything that simplifies the type system, so I agree with 
Brent that it is ok to remove them first to re-introduce them in a better form 
later.
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to