<div dir="ltr">`((Int, Int)) -> Void` will be same type as `(Int, Int) -> Void`</div><div class="gmail_extra"><br><div class="gmail_quote">2017-06-07 18:09 GMT+08:00 Adrian Zubarev <span dir="ltr"><<a href="mailto:adrian.zubarev@devandartist.com" target="_blank">adrian.zubarev@devandartist.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div class="m_4695019559940902313bloop_markdown"><p>Keep in mind there is also SE–0111 cometary which promises sugar for parameter labels for closures:</p>
<pre><code>// **
let foo(tuple:): ((Int, Int)) -> Void
// Sugar for **
let foo: (tuple: (Int, Int)) -> Void
</code></pre>
<p>What will happen if you’d always flatten here?</p>
<p></p></div><div class="m_4695019559940902313bloop_original_html"><span class=""><div id="m_4695019559940902313bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div> <br> <div id="m_4695019559940902313bloop_sign_1496829865575453952" class="m_4695019559940902313bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">-- <br>Adrian Zubarev<br>Sent with Airmail</div></div> <br></span><div><div class="h5"><p class="m_4695019559940902313airmail_on">Am 7. Juni 2017 um 12:03:08, Adrian Zubarev (<a href="mailto:adrian.zubarev@devandartist.com" target="_blank">adrian.zubarev@devandartist.<wbr>com</a>) schrieb:</p> <blockquote type="cite" class="m_4695019559940902313clean_bq"><span><div style="word-wrap:break-word"><div></div><div>
<div class="m_4695019559940902313bloop_markdown">
<p>Well please no:</p>
<p>
<code>let fn2: ((Int, Int)) -> Void = { lhs, rhs in
}</code></p>
<p>Instead use destructuring sugar pitched by Chris Lattner on the
other thread:</p>
<p><code>let fn2: ((Int, Int)) -> Void = { ((lhs, rhs)) in
}</code></p>
<p>That’s a correct error:</p>
<pre><code>let fn3: (Int, Int) -> Void = { _ in }
</code></pre>
<p>This should be allowed, because we might want to work with the
whole tuple and not a desctructured elements only:</p>
<pre><code>let fn4: ((Int, Int)) -> Void = { tuple in }
</code></pre></div>
<div class="m_4695019559940902313bloop_original_html">
<div id="m_4695019559940902313bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<br></div>
<br>
<div id="m_4695019559940902313bloop_sign_1496829431623208960" class="m_4695019559940902313bloop_sign">
<div style="font-family:helvetica,arial;font-size:13px">
-- <br>
Adrian Zubarev<br>
Sent with Airmail</div>
</div>
</div>
<div class="m_4695019559940902313bloop_markdown"></div>
</div></div></span></blockquote></div></div></div><div class="m_4695019559940902313bloop_markdown"><p></p></div></div></blockquote></div><br></div>