Skip to content

Clarify option resolution regarding fallback option values #1054

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

Merged
merged 4 commits into from
Mar 10, 2025

Conversation

aphillips
Copy link
Member

Fixes #1053.

@aphillips aphillips added formatting Issue pertains to the formatting section of the spec LDML48 LDML48 Release labels Mar 6, 2025
Copy link
Collaborator

@eemeli eemeli left a comment

Choose a reason for hiding this comment

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

The current indentation is intentional, and options resolving to fallback values are meant to be left out of res. This was most recently discussed in #903 (comment).

Rather than changing the algorithm, we should probably add a note about this.

Added a note explaining the fallback resolved values are not valid options and the option is thus omitted. I also reworded the emit-bad-option step to make it not look like an if statement missing an else
@aphillips aphillips changed the title Make option resolution return something if rv is a fallback value Clarify option resolution regarding fallback option values Mar 7, 2025
@aphillips
Copy link
Member Author

@eemeli I added the note you suggest. I also reworded the step in question to not make it look like an "if XXX" step in the algorithm (leading to the commenter's query about "where's the else"). See what you think.

@aphillips aphillips requested review from eemeli and catamorphism March 7, 2025 17:51
Copy link
Collaborator

@eemeli eemeli left a comment

Choose a reason for hiding this comment

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

See inline for a few necessary fixes; otherwise good.

aphillips and others added 2 commits March 9, 2025 08:12
Co-authored-by: Eemeli Aro <eemeli@mozilla.com>
Co-authored-by: Eemeli Aro <eemeli@mozilla.com>
@aphillips aphillips merged commit 1b925bf into main Mar 10, 2025
1 check passed
@aphillips aphillips deleted the aphillips-option-resolution-patch branch March 10, 2025 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
formatting Issue pertains to the formatting section of the spec LDML48 LDML48 Release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in option resolution
3 participants