<div dir="ltr">On 13 October 2017 at 21:15, Jean-Daniel <span dir="ltr">&lt;<a href="mailto:mailing@xenonium.com" target="_blank">mailing@xenonium.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">I don’t think this is a good idea to make discardable part of the function type.<div><br></div><div>What would fun(callback: () -&gt; discardable Int) would means ? </div></div></blockquote><div><br></div><div>you mean this?</div><div><br></div><div>func foo(callback: () -&gt; discardable Int) {</div><div>    ...</div><div>    let x = callback()</div><div>    ...</div><div>    callback() // no warning or error here</div><div>}</div><div><br></div><div>Mike</div><div><br></div></div></div></div>