<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I like this approach too BUT my only concern is how long it takes to get to the actual name.&nbsp;</div><div class="">I know I probably hate this already (give me time to sleep on it) and I'm not wedded to the&nbsp;</div><div class="">approach, but I'd like to see the operator move left for readability so that it's more like a&nbsp;</div><div class="">func declaration:</div><div class=""><br class=""></div><div class=""><div class=""><font face="Menlo" class="">operator +=(infix, associativity: right, precedence: 90, assignment)&nbsp;</font></div><div class=""><font face="Menlo" class="">operator -(prefix)</font></div><div class=""><font face="Menlo" class="">operator !(postfix)</font></div></div><div class=""><br class=""></div><div class="">-- E</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Mar 5, 2016, at 10:24 PM, Brent Royal-Gordon via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><blockquote type="cite" class="">infix operator += { associativity: right, precedence: 90, assignment: true }<br class=""></blockquote><br class="">I'm a little uncomfortable putting what looks for all the world like a parameter list into curly brackets; it just doesn't feel in step with other declarations. (To be fair, I wasn't comfortable with the old way, either.)<br class=""><br class="">Here'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't know for sure since it's not documented) are only valid on an infix operator. That would suggest:<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>infix(associativity: right, precedence: 90, assignment) operator +=<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>prefix operator -<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>postfix operator !<br class=""><br class="">-- <br class="">Brent Royal-Gordon<br class="">Architechies<br class=""><br class="">_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></div></blockquote></div><br class=""></body></html>