Exponentiation operator precedence

Rick Waldron waldron.rick at gmail.com
Tue Aug 25 18:31:59 UTC 2015

On Tue, Aug 25, 2015 at 11:12 AM Mark S. Miller <erights at google.com> wrote:

> I think we should drop the feature. Given the conflict between
> * the history of ** in other languages,
> * the general pattern that unary binds tighter than binary
> any solution at this point will confuse many people. These confusions will
> not result in a confusing static rejection but in runtime behavior that
> *sometimes* violates expectations. I was all for adding ** to the language
> when it did not have these problems. But it does. The minor convenience it
> adds is not worth these costs. By contrast, no one is confused about the
> parsing of calls to Math.pow.

Math.pow has exactly the same semantics as the _current_ ** . I'd like the
opportunity to work with Claude and Brian to resolve the grammar issue
before just tossing it out.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150825/075ff6dd/attachment.html>

More information about the es-discuss mailing list