You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like it might be simpler to have a single message, which has a body attribute that's one of pattern or select, and then select would just have the selectors and variants fields? (In other words, declarations would be factored out.)
There's also the approach @stasm has suggested, i.e. expressing single-pattern messages as having an empty list for selectors, and a single entry in variants with a corrspondingly empty list of keys.
As I mentioned on the call, I'd much prefer landing something first and then iterating on it, rather than sorting out the details all in one go.
Since I made the original suggestion: This would be a very minor refactoring of the data model spec, which would make the spec easier to read but doesn't have any impact from users. I would personally be fine with just closing the issue as wontfix, since we have plenty to do.
The data model proposed in #393 defines
Message
as the following union type:Seems like it might be simpler to have a single
message
, which has abody
attribute that's one ofpattern
orselect
, and thenselect
would just have theselectors
andvariants
fields? (In other words,declarations
would be factored out.)Originally posted by @catamorphism in #393 (comment)
There's also the approach @stasm has suggested, i.e. expressing single-pattern messages as having an empty list for selectors, and a single entry in variants with a corrspondingly empty list of keys.
As I mentioned on the call, I'd much prefer landing something first and then iterating on it, rather than sorting out the details all in one go.
Originally posted by @eemeli in #393 (comment)
The text was updated successfully, but these errors were encountered: