>
> x ** y ** z is easier to read/write than x.pow(y.pow(z))
>
That might be cherry picking.  Trying to make up something a little more
complex:

    a**b * -c**d + e

    Math.pow(a, b) * -Math.pow(c, d) + e

    a.pow(b) * -c.pow(d) + e

I don't have strong feelings on this issue, but the third option looks
pretty good to me.  If we had some form of pipelining syntax (yet to be
proposed), then we could have:

    let { pow } = Math;
    a->pow(b) * -c->pow(d) + e;

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

Reply via email to