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

Remove compiled_data Default ctors from types which are prone to change sufficiently often #5958

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

Manishearth
Copy link
Member

Also clarifies a new_common() vs new_extended() distinction for locale data.

Fixes #5554

@Manishearth Manishearth requested a review from sffc January 7, 2025 20:34
@Manishearth Manishearth requested review from sffc, dminor, zbraniecki and a team as code owners January 7, 2025 20:34
@Manishearth Manishearth force-pushed the default branch 2 times, most recently from 7c9116c to e422c75 Compare January 7, 2025 20:47
@Manishearth Manishearth force-pushed the default branch 2 times, most recently from 9b6231b to d4976cb Compare January 7, 2025 21:37
- `icu_locale`
- `LocaleExpander`, `LocaleDirectionality`, and `LocaleCanonicalizer` distinguish between `new_common()` and `new_extended()` constructors (unicode-org#5958)
- `icu_segmenter`
- Segmenters that can take a content locale now specify `_root()` on their default localeless constructors (unicode-org#5958)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"root" is a CLDR term that we have so far avoided. I don't think it's very clear if you don't think of languages as a tree.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to bikeshed the names further.

#5856 (comment) has some discussion. I don't really like any of the names on the table.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dislike root for the same reason, it is CLDR jargon, however it is a relatively convenient name.

@Manishearth Manishearth added the discuss Discuss at a future ICU4X-SC meeting label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Discuss at a future ICU4X-SC meeting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove Default impls that load data
2 participants