Re: [swift-evolution] Parameter names in closures in Swift 3 are no longer possible

2016-10-10 Thread Xiaodi Wu via swift-evolution
As mentioned previously, the core team has laid out a two-step roadmap to restoring parameter names: https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160711/024331.html On Mon, Oct 10, 2016 at 10:55 Andrew Hart via swift-evolution < swift-evolution@swift.org> wrote: > I’ve been a

[swift-evolution] Parameter names in closures in Swift 3 are no longer possible

2016-10-10 Thread Andrew Hart via swift-evolution
I’ve been a little dismayed to see that closures in Swift 3 no longer have parameter names. As an example, in Swift 2, a function with a completion block may look like this: func sendMessage(completion: (success: Bool, recipientID: String?, senderID: String?) -> Void) { //Oh no it failed