<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I agree on this. For large closures, `$0` isn’t very clear what you’re referring to. Personally, I’d rather remove them altogether, but I don’t want to start a subdiscussion on that here.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 23 Dec 2015, at 09:42, Tino Heth <<a href="mailto:2th@gmx.de" class="">2th@gmx.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""><blockquote type="cite" class=""><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">love trailing closures</span></div></blockquote></div>I wouldn't go that far and just say "})" looks ugly — but that has the same implications ;-)<div class="">With parameters, trailing closures loose a lot of their appeal, and an alternative syntax ("func(x: Int) {" instead of "{ x: Int in}" isn't that bad for trailing closure either.</div><div class=""><br class=""></div><div class="">The only obvious downside is the "$0" shortcut would be confusing with "func() {" (but not so much with "func {"…).</div><div class="">Speaking of "$0", you could argue why it is allowed in closures and not in methods… but I'm in some discord with $0 anyways:</div><div class="">It is really nice for small constructs, but drawing the line when to discourage their use is tough (at least to tough for the compiler to enforce a rule).</div></div></div></blockquote></div><br class=""></div></body></html>