<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">I'm really not sold about the ~&gt; operator, as it would be easy to miss. Swift is known and loved for the expressiveness of the language, using that operator doesn't help with that.&#160;
<div><br /></div>
<div>On another hand, I agree that this is the sexiest, less intrusive solution.</div>
</div>
<div name="messageReplySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br />
On 17 févr. 2017 13:36 -0500, Adrian Zubarev via swift-evolution &lt;swift-evolution@swift.org&gt;, wrote:<br />
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">
<div class="bloop_markdown">
<p>My suggestion is that <code>-&gt;</code> would be the conditional arrow that can be both <em>pure</em> or <em>impure</em>. That would make <code>@pure func foo(_ f: @pure (Int) -&gt; Int) -&gt; Int</code> equivalent to <code>func foo(_ f: (Int) ~&gt; Int) -&gt; Int</code>. Plus depending on the implementation the compiler <em>might</em> be able to help and tell you that <code>foo</code> could use <code>~&gt;</code> instead.</p>
</div>
<div class="bloop_original_html">
<style>
<![CDATA[
body{font-family:Helvetica,Arial;font-size:13px}
]]>
</style>
<div id="bloop_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="bloop_sign_1487356322068953088" class="bloop_sign">
<div style="font-family:helvetica,arial;font-size:13px">--&#160;<br />
Adrian Zubarev<br />
Sent with Airmail</div>
</div>
<br />
<p class="airmail_on">Am 17. Februar 2017 um 19:25:41, Anton Zhilin (<a href="mailto:antonyzhilin@gmail.com">antonyzhilin@gmail.com</a>) schrieb:</p>
<blockquote type="cite" class="clean_bq" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #e67e22;">
<div>
<div>
<div dir="ltr">
<div class="markdown-here-wrapper" style="">
<p style="margin:0px 0px 1.2em!important"><span>Just let</span></p>
<pre style="font-family:Consolas,Inconsolata,Courier,monospace;line-height:1.2em;margin:1.2em 0px">
<span><code style="font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;background-color:rgb(248,248,248);white-space:pre;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">@pure func foo(_ f: (Int) -&gt; Int) -&gt; Int<span style="font-size:0.85em">
</span></code></span>
</pre>
<p style="margin:0px 0px 1.2em!important">be the same as those two combined:</p>
<pre style="font-family:Consolas,Inconsolata,Courier,monospace;line-height:1.2em;margin:1.2em 0px">
<code style="font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;background-color:rgb(248,248,248);white-space:pre;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">@pure func foo(_ f: @pure (Int) -&gt; Int) -&gt; Int
func foo(_ f: (Int) -&gt; Int) -&gt; Int<span style="font-size:0.85em">
</span></code>
</pre>
<p style="margin:0px 0px 1.2em!important">No need for anything like “re-pure” or <code style="font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">≃&gt;</code>.</p>
<div title="MDH:PGRpdj5KdXN0IGxldDwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+YGBgPC9kaXY+PGRpdj5AcHVy ZSBmdW5jIGZvbyhfIGY6IChJbnQpIC0mZ3Q7IEludCkgLSZndDsgSW50PGJyPjwvZGl2PjxkaXY+ YGBgPC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj5iZSB0aGUgc2FtZSBhcyB0aG9zZSB0d28gY29t YmluZWQ6PC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj5gYGA8L2Rpdj48ZGl2PjxkaXY+QHB1cmUg ZnVuYyBmb28oXyBmOiBAcHVyZSAoSW50KSAtJmd0OyBJbnQpIC0mZ3Q7IEludDwvZGl2PjxkaXY+ ZnVuYyBmb28oXyBmOiAoSW50KSAtJmd0OyBJbnQpIC0mZ3Q7IEludDwvZGl2PjwvZGl2PjxkaXY+ YGBgPC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj5ObyBuZWVkIGZvciBhbnl0aGluZyBsaWtlICJy ZS1wdXJlIiBvciBg4omDJmd0O2AuPC9kaXY+" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0">​</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<div class="bloop_markdown"></div>
_______________________________________________<br />
swift-evolution mailing list<br />
swift-evolution@swift.org<br />
https://lists.swift.org/mailman/listinfo/swift-evolution<br /></blockquote>
</div>
</body>
</html>