Skip to content

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

Closed
@echeran

Description

@echeran

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    data modelIssues related to the Interchange Data Model

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions