<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div><br>On 25 Mar 2016, at 08:10, Haravikk via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=utf-8"><br class=""><div><blockquote type="cite" class=""><div class="">On 24 Mar 2016, at 21:08, Howard Lovatt <<a href="mailto:howard.lovatt@gmail.com" class="">howard.lovatt@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">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:<div class=""><br class=""></div><div class=""> let foo = myArray</div><div class=""> .filter { $0 & 1 == 1 }</div><div class=""> .map { $0 + 1 }</div><div class=""> .reduce(0) { $0 + $1 } <br class=""></div></div></blockquote></div><br class=""><div class="">This doesn’t really seem much neater or more readable to me than:</div><div class=""><br class=""></div><div class=""><font face="Monaco" class=""><span class="Apple-tab-span" style="white-space:pre">        </span>let foo = myArray</font></div><div class=""><font face="Monaco" class=""><span class="Apple-tab-span" style="white-space:pre">                </span>.filter({ $0 & 1 == 1 })</font></div><div class=""><font face="Monaco" class=""><span class="Apple-tab-span" style="white-space:pre">                </span>.map({ $0 + 1 })</font></div><div class=""><font face="Monaco" class=""><span class="Apple-tab-span" style="white-space:pre">                </span>.reduce(0, { $0 + $1 })</font></div><div class=""><br class=""></div><div class="">While they may add a small amount of noise, in the latter case the parenthesis clarifies that each is a method, and what all of its arguments are, and don’t use any custom syntax. Of course this assumes that .reduce() would have an optional label on its closure argument.</div></div></blockquote><div><br></div>On the other hand, I find the addition of the parenthesis makes it less readable than the one without. So please don't assume that what is equally readable for you applies to everyone else. <div><br></div><div>Alex</div></body></html>