-
-
Notifications
You must be signed in to change notification settings - Fork 36
Nested Selectors Sub-Group proposal #127
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
Comments
LGTM. |
I find the word "nesting" here quite confusing. |
Correct. And that's the term I intended to use here. When talking about this subjected, in the past, we used three types of examples:
but internally, all three depend on the same addition to the data model - placeholder can be a selector. |
As an observation, here's how the above example messages could be expressed using message-level selectors and message references, using some made-up syntax that's hopefully clear enough:
And that, to me, suggests that the case for internal or nested selectors in the data model needs to be particularly strong, should we also support message-level selectors and references: those features allow for a simple, lossless 1:1 mapping with internal and nested selectors when converting to or from e.g. syntax that supports them. |
I second @eemeli Technically:We don't want all the flexibility that internal selectors bring. We only want to be as flexible as to guarantee translatability.
Organizationally:I don't think this issue warrants creating more organizational structure. If some people such as @zbraniecki want to informally assign themselves as extensibility watchdog, let them do it. I think this can be managed as an open issue. But I'd oppose creation of a standing subgroup that would potentially have some sort of veto power WRT the parent group. |
Our exploration of data model ramifications led our Work Group to a strongly visible realization on challenges and tradeoffs around nested vs top level selectors.
The main arguments for disallowing nested selectors seem to be around complexity of such feature, and interoperability with existing localization tooling and vendor ecosystems.
The main arguments for allowing nested selectors seem to be around flexibility, support for complex scenarios and future-opportunities.
Mihai and I brainstormed how to move forward with recognition of that status.
Mihai wrote about avenues forward here: #103 (comment)
From my understanding (2) is what Mihai sides with, while (3) is where I see myself.
From this brainstorm came the following suggestion:
We (Mihai and Zibi) suggest forming an informal sub-group of MessageFormat 2.0 Work Group devoted to the exploration of a Nested Selection data model on top of the work performed by MF2.0 WG.
Such sub-group would be tasked with continuous monitoring of the work the main Work Group is doing for easy inclusion of the nested selectors.
The group would in result validate two hypothesis:
In particular (2) is crucial here. The sub group would inform the MF2.0 WG on the consequences of the various decisions on ability to add nested selection. If the sub-group were to come to the main Work Group and notify us on such consequence, MF2.0 WG would still be free to make such a decision, but it would be an informed decision, rather than implicit lock-in.
If successful, the result of the sub-group work would be:
In all scenarios, the nested selector sub-group would inform the main Work Group and secure the future extension for MF based on the perceived need, and validate hypotheses around it.
In practice, it would free the main Work Group to rely on the sub group to prevent unexpectedly blocking ourselves from being able to add nested selectors, while allowing the work to result in something that can easily be extended to support nested selection if the claim strengthens over time, or not, if the claim weakens.
How does it sound to you?
The text was updated successfully, but these errors were encountered: