<div dir="ltr">I&#39;m not completely sold on the proposed change but, if we were to do something like this, I suggest we include `fixity` as a parameter and come up with something for `assignment` (`true` in my example is admittedly suboptimal ). Those `operator -(prefix) seems strange to me.<div><br></div><div>```</div><div><div style="font-size:13px"><font face="Menlo">operator +=(fixity: infix, associativity: right, precedence: 90, assignment: true) </font></div><div style="font-size:13px"><font face="Menlo">operator -(fixity: prefix)</font></div><div style="font-size:13px"><font face="Menlo">operator !(fixity: postfix)</font></div></div><div>```</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 6, 2016 at 12:35 AM, Erica Sadun via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<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>I like this approach too BUT my only concern is how long it takes to get to the actual name. </div><div>I know I probably hate this already (give me time to sleep on it) and I&#39;m not wedded to the </div><div>approach, but I&#39;d like to see the operator move left for readability so that it&#39;s more like a </div><div>func declaration:</div><div><br></div><div><div><font face="Menlo">operator +=(infix, associativity: right, precedence: 90, assignment) </font></div><div><font face="Menlo">operator -(prefix)</font></div><div><font face="Menlo">operator !(postfix)</font></div></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- E</div></font></span><div><div class="h5"><div><br></div><div><blockquote type="cite"><div>On Mar 5, 2016, at 10:24 PM, Brent Royal-Gordon via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:</div><br><div><div><blockquote type="cite">infix operator += { associativity: right, precedence: 90, assignment: true }<br></blockquote><br>I&#39;m a little uncomfortable putting what looks for all the world like a parameter list into curly brackets; it just doesn&#39;t feel in step with other declarations. (To be fair, I wasn&#39;t comfortable with the old way, either.)<br><br>Here&#39;s what I suggest. Usually, a bunch of parameters modifying a declaration would go in a parenthesized list after the particular keyword they modified, and in this case, `associativity` and `precedence` (and probably `assignment` too, though I don&#39;t know for sure since it&#39;s not documented) are only valid on an infix operator. That would suggest:<br><br><span style="white-space:pre-wrap">        </span>infix(associativity: right, precedence: 90, assignment) operator +=<br><span style="white-space:pre-wrap">        </span>prefix operator -<br><span style="white-space:pre-wrap">        </span>postfix operator !<br><br>-- <br>Brent Royal-Gordon<br>Architechies<br><br>_______________________________________________<br>swift-evolution mailing list<br><a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br></div></div></blockquote></div><br></div></div></div><br>_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
<br></blockquote></div><br></div>