<div dir="ltr">Why don&#39;t we go the other direction? Example:<div><br></div><div><div style="font-size:12.8px">func ^^(prefix: Int) {}</div><div style="font-size:12.8px">func ^^(postfix: Int) {}</div><div style="font-size:12.8px">func ^^(lhs: Int, rhs: Int) {}</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">We will make &#39;prefix&#39;, &#39;postfix&#39; and perhaps &#39;lhs&#39; and &#39;rhs&#39; required external parameter names for operator functions.</div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-12 7:03 GMT+03:00 Jacob Bandes-Storch via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Currently, &quot;infix&quot; is not required/allowed on an operator function definition, but &quot;prefix&quot; and &quot;postfix&quot; are:</div><div><br></div><div><div><div>    prefix operator ^^ {}   // valid</div><div>    postfix operator ^^ {}  // valid</div><div>    infix operator ^^ {}    // valid</div><div><br></div><div>    prefix func ^^(operand: Int) {}  // valid</div><div>    postfix func ^^(operand: Int) {} // valid</div><div>    infix func ^^(lhs: Int, rhs: Int) {}   // <b>error: </b>&#39;infix&#39; modifier is not required or allowed on func declarations</div><div>    func ^^(lhs: Int, rhs: Int) {}         // valid</div></div></div><div><br></div><div>It seems like this was removed because it can be inferred from the number of arguments (<a href="https://github.com/apple/swift/commit/3ad9c58c18f0331444114e2eae3e772e702c326f" target="_blank">https://github.com/apple/swift/commit/3ad9c58c18f0331444114e2eae3e772e702c326f</a>).  But IMO the inconsistency from other operator function decls/defs is jarring.</div><div><br></div><div>How does everyone feel about reinstating the &quot;infix&quot; modifier on functoins? (It was removed before the open-source release and the advent of swift-evolution, so I thought it&#39;d be worth a public review.)</div><span class="HOEnZb"><font color="#888888"><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><div>Jacob</div></div></div></div></font></span></div></blockquote></div></div></div>