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

Add Expander argument to LocaleCanonicalizer #5718

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

Manishearth
Copy link
Member

Fixes #5297

@Manishearth Manishearth requested a review from sffc October 21, 2024 21:15
@Manishearth Manishearth requested review from dminor, zbraniecki and a team as code owners October 21, 2024 21:15
@Manishearth Manishearth force-pushed the canonicalizer-generic branch from 0a6edfd to c340ef6 Compare October 21, 2024 22:27
/// Data to support canonicalization.
aliases: DataPayload<AliasesV2Marker>,
/// Likely subtags implementation for delegation.
expander: LocaleExpander,
expander: Expander,
Copy link
Member

Choose a reason for hiding this comment

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

convention is to use single letters for generics, this looks like there's an Expander type. Can you use E?

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've used Expander elsewhere in this crate already. We've been trying to use slightly more descriptive generics where possible, e.g. CaseMapCloser takes a CM. I couldn't come up with a good two-letter one for Expander.

cc @sffc

@Manishearth Manishearth merged commit c676494 into unicode-org:main Oct 22, 2024
28 checks passed
@Manishearth Manishearth deleted the canonicalizer-generic branch October 22, 2024 01:06
Copy link
Member

@sffc sffc left a comment

Choose a reason for hiding this comment

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

LGTM

I prefer Expander over E because E looks like Error

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.

LocaleCanonicalizer and LocaleDirectionality should use AsRef for their type parameter
3 participants