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

Implement AsULE for PluralCategory #4496

Merged
merged 3 commits into from
Dec 27, 2023
Merged

Conversation

sffc
Copy link
Member

@sffc sffc commented Dec 27, 2023

Smaller changed pulled off from #4415

I would prefer 0 to be PluralCategory::Other since 0 should be the default state (despite being cute that PluralCategory::Zero has discriminant 0). Can I set the discriminant as such without affecting semver or postcard?

@sffc
Copy link
Member Author

sffc commented Dec 27, 2023

I think I didn't end up needing this in #4415, so this is not super urgent, but I think it would be nice to have this discussion because we most likely will need these impls.

@sffc sffc requested a review from a team as a code owner December 27, 2023 03:39
Copy link
Member

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

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

yeah you cant change it without breaking postcard

you could change it such that the ULE type uses a different discriminant than the postcard serialization but that sounds extremely fraught for questionable gain

@sffc
Copy link
Member Author

sffc commented Dec 27, 2023

#4498

@sffc sffc merged commit 84d16e9 into unicode-org:main Dec 27, 2023
29 checks passed
@sffc sffc deleted the pluralcategory-ule branch December 27, 2023 17:27
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

Successfully merging this pull request may close these issues.

3 participants