Hi Roger - 

Replying to the four proposals you sent in one mail for easier discussion:

*** Make Math.hypot(x,y,z,...) variadic ***
This sounds like a reasonable extension.  Oddly, I haven't seen any other 
libraries support a variadic hypot function, but the use cases seem obvious 
enough.  

*** Math.cbrt ***
This was considered, but wasn't above the line of what was in the proposed Math 
extensions.  What use case do you have in mind?

*** Rename Math.sign to Math.signum ***
There isn't overwhelming precedent in either direction here.  Java and Matlab 
are signum, .NET and Python (numpy) and Mathematica are sign.  C has a 
different but related copysign.  To the extent there is precedent, it seems 
slightly in favor of 'sign', and it's slightly less cryptic. 

*** More constants on Number ***
EPSILON would be a sensible addition - I am aware of use cases in estimating 
error bounds.  For MIN_NORMAL, MAX_INTEGER and MAX_POWTWO, what use cases do 
you have in mind?  

Luke


_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to