<div class="gmail_quote">On 13 January 2012 19:41, Matej Nanut <span dir="ltr"><<a href="mailto:matejnanut@gmail.com">matejnanut@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I feel it should be left as is: it'll be ambiguous either way and why mess<br>
with how it's in mathematics? If anyone feels uncomfortable using it,<br>
just use std.math.pow. Many other languages don't have this operator so<br>
people coming from them won't know it exists anyway (like me until this<br>
post).</blockquote><div><br></div><div>Expecting all people who may be uncomfortable with it to use pow() doesn't help those who have to read others code containing the operator.</div><div>It's NOT like it is in mathematics, there is no 'operator' in mathematics (maths uses a superscript, which APPEARS to be a unary operation). When using the operator, with spaces on either side, it looks like (and is) a binary operator.</div>
<div>I think it's reasonable for any experienced programmer to expect that any binary operator will have a lower precedence than a unary operator.</div><div>What I wonder is why this operator is necessary at all? With this ambiguity, it harms the readability, not improves it :/</div>
</div>