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

Change the name to be more related #8

Open
younies opened this issue Jun 11, 2020 · 11 comments
Open

Change the name to be more related #8

younies opened this issue Jun 11, 2020 · 11 comments
Assignees

Comments

@younies
Copy link
Member

younies commented Jun 11, 2020

Smart Unit Preferences is kinda a fascinating name, especially the smart part. Therefore, if you have any suggestion would be nice :)

@younies
Copy link
Member Author

younies commented Jun 11, 2020

@sffc , @zbraniecki , @hugovdm ... could you add suggestions, please?

@zbraniecki
Copy link
Member

Based on LDML - http://unicode.org/reports/tr35/tr35-general.html#Unit_Preference_and_Conversion - maybe "NumberFormat Unit Preferences"?

@sffc
Copy link

sffc commented Jun 11, 2020

Or just "Measurement Unit Preferences"?

@younies
Copy link
Member Author

younies commented Jun 12, 2020

I think Unit Preferences is enough, what do you think?

@hugovdm
Copy link
Collaborator

hugovdm commented Jun 16, 2020

I would have liked "NumberFormat Unit Preferences" if that was all that we would propose with this.

There was some talk in the meeting about exposing just the preferences as a first step, and not implementing the conversions? Because of this, I'm feeling "Measurement Unit Preferences" is broader in scope and would have us covered even if we did end up "pivoting" away from [only] changing Intl.NumberFormat with this.

@sffc
Copy link

sffc commented Jun 16, 2020

The problem with "Unit Preferences" is that it is easy to confuse with "User Preferences".

@younies
Copy link
Member Author

younies commented Jun 17, 2020

@hugovdm , I do not want to tight Unit Preferences with NumberFormat, because may be people will use some of the Unit Preferences stuffs without formatting such as conversion or just to know the preferences themselves ... etc.

@sffc, I agree with you

@zbraniecki
Copy link
Member

@hugovdm , I do not want to tight Unit Preferences with NumberFormat, because may be people will use some of the Unit Preferences stuffs without formatting such as conversion or just to know the preferences themselves ... etc.

Does it mean you intend for the API to be attached to Intl directly rather than Intl.NumberFormat?

The problem with "Unit Preferences" is that it is easy to confuse with "User Preferences".

I don't see this as an issue.

@hugovdm
Copy link
Collaborator

hugovdm commented Jun 17, 2020

@hugovdm , I do not want to tight Unit Preferences with NumberFormat, because may be people will use some of the Unit Preferences stuffs without formatting such as conversion or just to know the preferences themselves ... etc.

Does it mean you intend for the API to be attached to Intl directly rather than Intl.NumberFormat?

I'm primarily thinking of the request someone made: for us to consider providing an API that returns user preferences, before we consider adding an API that actually does all the conversions etc as well. I'm not convinced by this suggestion, but I'm appreciating some concerns about the complexity we're adding to the ECMAScript platform when we're going so far as to add unit conversions to it.

Recap: practically speaking, how do we relate to up-to-date ECMAScript implementations that don't make use of ICU? (Do they exist at this time, or is this hypothetical?)
-- This does go a bit off-topic, maybe we need a separate discussion thread for this?

@sffc
Copy link

sffc commented Jun 17, 2020

Two examples of future non-ICU implementations are polyfills (such as format.js) and ICU4X.

@zbraniecki
Copy link
Member

for us to consider providing an API that returns user preferences, before we consider adding an API that actually does all the conversions etc as well.

That was me and the motivation is to continue with the tradition of ECMA402 being building blocks for user libraries that are intended to lower the entry barrier and payload per-website.

In this case, I'm not confident that the payload is high, and the use case is common enough to justify such API, but if it is, offering building blocks rather than end-to-end solution seems safer and less likely to backfire.

Recap: practically speaking, how do we relate to up-to-date ECMAScript implementations that don't make use of ICU? (Do they exist at this time, or is this hypothetical?)
-- This does go a bit off-topic, maybe we need a separate discussion thread for this?

I would consider it to be a failure of this WG if we ended up designing a spec that implicitly requires ICU backing.

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

4 participants