<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><blockquote type="cite" class="">On May 2, 2016, at 5:58 PM, Chris Lattner via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:<br class=""><br class="">On May 2, 2016, at 1:56 PM, Dave Abrahams via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:<br class=""><blockquote type="cite" class=""><blockquote type="cite" class=""> How does one distinguish between calls to a static prefix operator and a<br class=""> static postfix operator with the same name?<br class=""><br class="">Ah, that's a tricky one that I don't have an immediate answer to, so I'm<br class="">definitely open to creative thoughts here.<br class=""></blockquote><br class="">One possibility: just use “qualified operator” notation.<br class=""><br class=""> lhs T.+= rhs<br class=""><br class=""> T.++x<br class=""> x T.++<br class=""></blockquote><br class="">I’m not sure if this is exactly right, but it seems close. I think that something like this is probably the best way to go, since it composes properly in arbitrary expressions. It does have a surface level weirdness to it, but it also "makes sense” in terms of how operators work. <br class=""></blockquote>Yeah… Maybe with parens?<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class="">T.++(x)</div><div class="">(x)T.++</div></blockquote><div class="">Or is that worse?</div><div class=""><br class=""></div><div class="">- Dave Sweeris</div></body></html>