It's error by design: we don't allow tuple unpacking in closure parameters.
Another example:

func call(block: ((Int, Int)) -> Int)  // note double parens
call { (a, b) in print(a + b) }  // will be error
call { (a) in print(a.0 + a.1) } // ok

Sorry, did not send to evolution the first time.
We usually refer to SE-0029 "Remove implicit tuple splat", although it does
not specifically mention closures.
I would suggest to start discussion on your (additive) change after 07/30.
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to