> On Nov 2, 2017, at 4:04 PM, Eric Summers via swift-evolution 
> <swift-evolution@swift.org> wrote:
> 
> // A sugar similar to property accessors for multiple trailing closures:
> foobar(a: 1, b: 2) {
>     completionBlock { x, y in
>     // ...
>     }
>     failureBlock { i, j in
>     // ...
>     }
> }

This syntax is ambiguous. Are you passing in two trailing closures to foobar(), 
or a single trailing closure, inside which you call two top-level functions, 
completionBlock and failureBlock?

Slava

_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to