Re: [csswg-drafts] [css-values] Trigonometric functions (#2331)

Consistency is a reasonable argument I think ^_^. But also it means we get to avoid all the confusing evaluation rules; what's `2 ** 3 ** 4` equal to, what's `-1 ^ 2` equal to, etc etc. JS had a lot of confusion solving these, and ended up with some interesting restrictions as a result (for example, you have to parenthesize the LHS if it's a negative value, to avoid any ambiguity).

`pow(X, 2)`, on the other hand, is 100% unambiguous all the time.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2331#issuecomment-468100460 using your GitHub account

Received on Thursday, 28 February 2019 01:34:21 UTC