On Fri, Oct 14, 2016 at 7:31 AM Cyril Auburtin <cyril.aubur...@gmail.com>
wrote:

> I would expect `-2**3` to return -8, or `-2**2 == -4`, since it should be
> like `-(2**3)`
>

This was discussed extensively during the design process and determined
that requiring user code to be explicit about its intention was the only
sane design.

-
https://github.com/rwaldron/tc39-notes/blob/master/es7/2015-09/sept-23.md#exponentiation-operator
-
https://github.com/rwaldron/tc39-notes/blob/master/es7/2015-09/sept-24.md#exponentiation-operator


Rick


>
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to