Exponentiation operator precedence
tribble at e-dean.com
Thu Aug 27 16:25:35 UTC 2015
Ideally syntax proposals should include some frequency information to
motivate any change. Is there an easy search to estimate the frequency of
Math.pow? In my application codebase (financial app with only modest JS
use), there are very few uses, and there are as many uses of Math.sin as
there are of Math.pow.
Anecdotally, my eyes caught on: "-Math.pow(2,-10*a/1)" (from a charting
library) which makes me not want to have to review code where I'm worried
about the precedence of exponentiation.
On Thu, Aug 27, 2015 at 7:32 AM, Kevin Smith <zenparsing at gmail.com> wrote:
> because the right-side-up way to say that is:
>> e - a * c
> Yeah, I was waiting for someone to point that out, after I hit send. : )
> I should spend more time setting up a better examples...
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss