Skip to content

Conversation

@aphillips
Copy link
Member

Fixes #1053.

@aphillips aphillips added formatting Issue pertains to the formatting section of the spec LDML48 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 catamorphism and eemeli 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
@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
@eemeli eemeli added this to the LDML 48 milestone Jul 23, 2025
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug in option resolution

4 participants