<div dir="ltr">What problem are you trying to solve by proposing this change? It seems like it would get very confusing to read, so without a compelling use case I don't think this would be a good idea.<div><br></div><div>Further, more often than not, chained closures like this are on separate lines (at least how I use them, which I don't think is rare), and this change could not possibly work in that coding style. This means that if your proposal were adopted, the resulting code would be more brittle because a newline would break the code where previously it didn't. So I'd be -1 for this change.</div><div><br></div><div>In any case, sugar is really low on the list of priorities, even for the next stage of Swift evolution. Let's focus our attention on the priorities already identified for this release, which would be a *huge* advancement if they get accomplished.</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 28, 2016 at 1:15 PM, Adrian Zubarev via swift-evolution <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><p>This is a small pitch for stage 2 (or even another Swift release, if the community likes this change).</p>
<p>We all love the trailing closure plus the ability to execute the next method with another trailing closure.</p>
<pre><code>someArray.map { … }.filter { … }.flatMap { … }
</code></pre>
<p>Wouldn’t be great if we could remove the leading <code>.</code> after the trailing closure to get similar syntax to <code>if bool { … } else { … }</code>?</p>
<pre><code>someArray.map { … } filter { … } flatMap { … }
</code></pre><span class=""><font color="#888888">
<p></p></font></span></div><span class=""><font color="#888888"><div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><br><div><div style="font-family:helvetica,arial;font-size:13px">-- <br>Adrian Zubarev<br>Sent with Airmail</div></div></div><div><p></p></div></font></span></div><br>______________________________<wbr>_________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-<wbr>evolution</a><br>
<br></blockquote></div><br></div></div>