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

Define matching for simple integers, leave others up to implementations #933

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

Conversation

eemeli
Copy link
Collaborator

@eemeli eemeli commented Nov 12, 2024

More explicitly defines numeric matching for when it's well-defined, and when it's not well-defined.

Leaves values beyond non-negative integers as implementation-defined, and replaces the JSON reference with the digit-size-option ABNF rule, as it's a better fit.

Copy link
Member

@aphillips aphillips left a comment

Choose a reason for hiding this comment

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

I agree with removing the JSON reference, but we don't need to get carried away perhaps?

spec/registry.md Outdated Show resolved Hide resolved
@aphillips aphillips added registry fast-track Non-spec editorial changes, etc. LDML46.1 MF2.0 Draft Candidate labels Nov 13, 2024
@aphillips
Copy link
Member

(chair hat ON)

We approved fixing this text in the 2024-11-11 call, so this is on the fast track. Group members should weigh in if they have comments. Note that I require two approvals to merge, per process.

Copy link
Member

@aphillips aphillips left a comment

Choose a reason for hiding this comment

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

I think this is now fine.

I note that the match instructions have this:

If the value of key matches the production number-literal, then

The number-literal production handles fractions and exponents. The WG consensus is not to solve this just now, but really... it's goofy to allow (in fact, require checking for) keys like 123.456 and 1.23e7 but not define a match for (some of) them. 'Nuff said. This PR accomplishes the goal set out for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fast-track Non-spec editorial changes, etc. LDML46.1 MF2.0 Draft Candidate registry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants