Skip to content
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

Why put measure units in the own constructor when currencies share the NumberFormat constructor? #5

Open
sffc opened this issue Feb 12, 2018 · 0 comments

Comments

@sffc
Copy link

sffc commented Feb 12, 2018

Measure units (meters, joules, seconds) and currencies are two ways to specify the thing that a number is quantifying. Why should one have its own constructor while the other is part of NumberFormat?

See tc39/ecma402#215 for my proposal, adding measure units as an option to NumberFormat instead of having its own class under Intl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant