<div><font size="2"><span style="background-color:rgba(255,255,255,0)">TLDR: Previous draft did not carry the idea well, I will rewrite it.</span></font></div><font size="2"><span style="background-color:rgba(255,255,255,0)"><div><font size="2"><span style="background-color:rgba(255,255,255,0)"><br></span></font></div>In my original post, I didn&#39;t intend to make an accent on syntax. I mainly tried to rework how operator precedence works.</span></font><div><div><font size="2"><span style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.301961);"><br></span></font></div><div><font size="2"><span style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.301961);">Consider following example.</span></font></div><div><font size="2"><span style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.301961);">Module A defines operator |&gt; that acts on Stream, is left-associative and has precedence rules X.</span></font></div><div><font size="2"><span style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.301961);">Module B defines operator |&gt; that acts on</span></font><span style="font-size:small"> Serializable, is right-associative and has precedence rules Y.</span></div><div><span style="font-size:small"><br></span></div><div><span style="font-size:small">A and B don&#39;t know anything about each other.</span></div><div><span style="font-size:small">Without the proposal, definitions of |&gt; would be in conflict.</span></div><div><span style="font-size:small">With the proposal, there would be no conflict for |&gt;. They would define different operators with different precedence rules and associativity.</span></div><div><span style="font-size:small"><br></span></div><div><span style="font-size:small">In expression a + b + c, first and second + would have different precedence and associativity, depending on #operator directives, types of a,b,c and available perator functions.</span></div><div><span style="font-size:small"><br></span></div><div><span style="font-size:small">Now I think that probably, having conflicts in operator definitions is better than to have complex compiler rules for parsing expressions as simple as a + b + c.</span></div><div><font size="2"><span style="background-color:rgba(255,255,255,0)"></span></font><div><font size="2"><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font size="2"><span style="background-color:rgba(255,255,255,0)">- Anton</span></font></div><br>четверг, 10 марта 2016 г. пользователь Chris Lattner  написал:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
&gt; On Mar 9, 2016, at 11:15 AM, Sean Heber via swift-evolution &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;swift-evolution@swift.org&#39;)">swift-evolution@swift.org</a>&gt; wrote:<br>
&gt;<br>
&gt; Isn’t this essentially describing it’s expression-ness? Why not just use “expression” like:<br>
&gt;<br>
&gt; expression: infix<br>
&gt; expression: postfix<br>
&gt; expression: prefix<br>
<br>
Are any of these proposals *better* than “infix operator + {“ ?<br>
<br>
I’m not claiming that the body of the operator declaration is great, but one nice thing about it is that the required terms are part of the decl modifier, the optional gunk is in the body, and it reads well.<br>
<br>
-Chris<br>
<br>
<br>
&gt;<br>
&gt; l8r<br>
&gt; Sean<br>
&gt;<br>
&gt;<br>
&gt;&gt; On Mar 9, 2016, at 1:12 PM, Erica Sadun via swift-evolution &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;swift-evolution@swift.org&#39;)">swift-evolution@swift.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; On Mar 9, 2016, at 12:10 PM, Charles Kissinger &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;crk@akkyra.com&#39;)">crk@akkyra.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Mar 8, 2016, at 1:52 PM, Austin Zheng &lt;<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;austinzheng@gmail.com&#39;)">austinzheng@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &#39;Fixity&#39; already has a non-technical meaning (&quot;the state of being unchanged and permanent&quot;), and an unrelated technical one (a synonym for associativity; search &quot;assocativity fixity operator&quot; for examples). If we&#39;re using it in this different way, I respectfully submit that we should reconsider.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; You are correct, of course, but a subset of computer scientists have been abusing the term in this way for at least a couple of decades. Their novel usage of “fixity” now has a degree of fixity, so it may be too late to fix &quot;fixity&quot;.<br>
&gt;&gt;<br>
&gt;&gt; It&#39;s become a termity of art.<br>
&gt;&gt;<br>
&gt;&gt; -- E<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; swift-evolution mailing list<br>
&gt;&gt; <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;swift-evolution@swift.org&#39;)">swift-evolution@swift.org</a><br>
&gt;&gt; <a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; swift-evolution mailing list<br>
&gt; <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;swift-evolution@swift.org&#39;)">swift-evolution@swift.org</a><br>
&gt; <a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
<br>
</blockquote></div></div>