<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=""><div><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></body></html>