[swift-evolution] Deprecating Trailing Closures

Thorsten Seitz tseitz42 at icloud.com
Thu Mar 31 08:52:32 CDT 2016


> Am 24.03.2016 um 22:31 schrieb Andrey Tarantsov via swift-evolution <swift-evolution at swift.org>:
> 
>> 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.

+1 from me as well.

-Thorsten 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160331/706abe99/attachment.html>


More information about the swift-evolution mailing list