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

How do we support multiple selection args (selectors) in a multi-select message? #106

Closed
echeran opened this issue Aug 8, 2020 · 0 comments · Fixed by #372
Closed

How do we support multiple selection args (selectors) in a multi-select message? #106

echeran opened this issue Aug 8, 2020 · 0 comments · Fixed by #372
Labels
data model Issues related with MF data Model

Comments

@echeran
Copy link
Collaborator

echeran commented Aug 8, 2020

A multi-select message often has one variable used for selection. But what if there are two or more? How do we structure and represent the message accordingly?

This issue is somewhat related to #103, and the example there is applicable here, too.

Several comments that are in favor of "flat" (non-nested) multi-select messages also represent the selection args (selectors) in a list, and likewise represent the selection function return values in a list to key each corresponding pattern in the multi-select message. Ex: #98 (comment) Ex: projectfluent/fluent#4

One alternate formulation of a flat multi-select message uses a map instead of the prevalent 2 lists formulation (selector names and selector values). A detailed discussion of the tradeoffs, which resulted in that formulation losing support from its proponent, can be read here.

If #103 results in allowing nested multi-select messages, then that might simplify how this question is understood. What would that look like, and what are the tradeoffs?

@echeran echeran changed the title Ho do we support multiple selection args (selectors) in a multi-select message? How do we support multiple selection args (selectors) in a multi-select message? Aug 10, 2020
@mihnita mihnita added the data model Issues related with MF data Model label Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data model Issues related with MF data Model
Projects
None yet
2 participants