[swift-evolution] Deprecating Trailing Closures

Andrey Tarantsov andrey at tarantsov.com
Thu Mar 24 16:31:01 CDT 2016


> I use trailing closures all the time because I find the brackets too noisy, like ; at the end of a line is too noisy. The sort of code I use is:
> 
>     let foo = myArray
>         .filter { $0 & 1 == 1 }
>         .map { $0 + 1 }
>         .reduce(0) { $0 + $1 } 

+1 to this. Please don't remove them, they're great.

A.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160325/ca3cf456/attachment.html>


More information about the swift-evolution mailing list