-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Number
properties
#19
base: master
Are you sure you want to change the base?
Conversation
58f2c26
to
c8a0b57
Compare
No pun intended, a number of properties are missing from JavaScript’s `Number` as seen here: https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-number.epsilon This includes: `EPSILON`, `NEGATIVE_INFINITY`, `MAX_VALUE`, and `MIN_VALUE`. I have a current use case for `MAX_VALUE`.
c8a0b57
to
dce6aa0
Compare
Just a few thoughts:
|
Questions I don't feel qualified to answer. They could be shimmed with their limits. Or don't use these values outside of a JS context. Or these could be moved to some sort of |
Hm... I feel like we keep running into this issue where the JS side should have stuff like this here, but I'm unsure how to proceed because it may affect other backends. However, adding another library containing a few functions seems dumb, too. |
Numbers in Javascript (and hence Of course, we want to minimize the number of times a backend implementer has to provide some special function or value. As part of the Since I need to tidy up some documentation on #18 to get that over the line but would be happy to take the lead on this once I've done that. I expect that to be about a month from now. |
Description of the change
No pun intended, a number of properties are missing from JavaScript’s
Number
as seen here: https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-number.epsilonThis includes:
EPSILON
,NEGATIVE_INFINITY
,MAX_VALUE
, andMIN_VALUE
.I have a current use case for
MAX_VALUE
.Checklist: