<div dir="ltr">As a side effect, we will be able to purge IUO from Swift abolutely, completely.<div>And add a rule that we can shadow Optional&lt;T&gt; parameter with T for some T.<br><div>But it is the theme of a separate proposal.</div><div><br></div><div>- Anton</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-14 18:28 GMT+03:00 Антон Жилин <span dir="ltr">&lt;<a href="mailto:antonyzhilin@gmail.com" target="_blank">antonyzhilin@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">As promised, I&#39;ve created a proposal to add @shadowing attribute. Link to the proposal:<div><br><div><a href="https://github.com/Anton3/swift-evolution/blob/shadowing-imported-functions/proposals/NNNN-shadowing-imported-functions.md" target="_blank">https://github.com/Anton3/swift-evolution/blob/shadowing-imported-functions/proposals/NNNN-shadowing-imported-functions.md</a><br></div><div><br></div><div>Example:</div></div><div><br></div><div><pre style="overflow:auto;font-family:Consolas,&#39;Liberation Mono&#39;,Menlo,Courier,monospace;margin-top:0px;margin-bottom:0px;font-stretch:normal;line-height:1.45;padding:16px;border-radius:3px;word-wrap:normal;color:rgb(51,51,51);background-color:rgb(247,247,247)"><span style="color:rgb(150,152,150)">// Imported function (implicit declaration)</span>
<span style="color:rgb(167,29,93)">func</span> <span style="color:rgb(121,93,163)">dispatch_sync</span>(queue: dispatch_queue_t, block: (<span style="color:rgb(167,29,93)">@convention</span>(block) () <span style="color:rgb(167,29,93)">-&gt;</span> <span style="color:rgb(0,134,179)">Void</span>)!)

<span style="color:rgb(167,29,93)">@shadowing</span>(dispatch_sync(queue, block))
<span style="color:rgb(167,29,93)">func</span> <span style="color:rgb(121,93,163)">sync</span>(queue: dispatch_queue_t, <span style="color:rgb(167,29,93)">@noescape</span> block: <span style="color:rgb(167,29,93)">@convention</span>(block) () <span style="color:rgb(167,29,93)">-&gt;</span> <span style="color:rgb(0,134,179)">Void</span>)</pre></div><div><br></div><div>- Anton</div></div>
</blockquote></div><br></div>