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 handle and represent selection for a multi-select message? #104

Closed
echeran opened this issue Aug 8, 2020 · 1 comment · Fixed by #372
Closed

How do we handle and represent selection for a multi-select message? #104

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

Comments

@echeran
Copy link
Collaborator

echeran commented Aug 8, 2020

For a multi-select message, there is the step of selecting a single pattern from the available patterns, followed by the formatting of that selected pattern. This concerns the first step, which is how do we select, and how do we represent that in a data model?

The topic of how to perform selection came up specifically in zbraniecki/message-format-2.0-rs#9, with the specific case of the uneven branches problem. It offers alternatives for structuring the data model in ways that can represent a hierarchy/ordering of preference for selection among the patterns.

A different perspective to the problem is to represent selection as a function / interface / trait as suggested in #99. This requires us to consider defining functions/interfaces either alongside or within a data model, but it potentially decouples selection logic from affecting the shape of input data.

Details of how the algorithmic logic for selection might be defined is described in #101. This covers cases where one selector arg is needed and many selector args are needed in the multi-select message.

@echeran
Copy link
Collaborator Author

echeran commented Aug 8, 2020

Also relevant is whether we may need to utilize values only known at runtime for selection #98.

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