Pow operator precedence

Manu turkeyman at gmail.com
Fri Jan 13 11:25:26 PST 2012


On 13 January 2012 20:46, Matej Nanut <matejnanut at gmail.com> wrote:

> On another note, Octave (and I guess Matlab as well?) use D's precedence
> for the pow operator. Bearophile stated earlier that Python does too. Those
> seem like quite large audiences. I'm not saying agreeing with the masses
> is the choice here, but if a mathematical environment sees it as fit, and
> since as far as I'm concerned there's still no reason to prefer one over
> the
> other, it should be either deprecated or left alone.
>

Fair call. I buy this argument. If there is a precedent set by (multiple)
other languages towards this precedence (and none against), then so be it.
If there were a vote though, I'd vote for it being deprecated on grounds of
offering nothing to the language more than confusion.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120113/9908fb76/attachment.html>


More information about the Digitalmars-d mailing list