This is a small pitch for stage 2 (or even another Swift release, if the 
community likes this change).

We all love the trailing closure plus the ability to execute the next method 
with another trailing closure.

someArray.map { … }.filter { … }.flatMap { … }  
Wouldn’t be great if we could remove the leading . after the trailing closure 
to get similar syntax to if bool { … } else { … }?

someArray.map { … } filter { … } flatMap { … }  


-- 
Adrian Zubarev
Sent with Airmail
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to