Data Model - Normalization and Syntax(Typescript) #141
Replies: 3 comments 8 replies
-
My data model draft is now available here, along with a few examples of it in use. I'm really quite happy with how it looks like it ought to be possible to keep the model conceptually pretty simple; I at least ended up only needing to define the following: Bundle, MessageSet, Message, Placeholder, Reference, Select. |
Beta Was this translation helpful? Give feedback.
-
My unordered comments, comparing the other ASTs to mine: EcheranI don't understand why Elango's model lists Plural and Gender as "magical"
I think they keys for variants can only be strings, and I believe we should allow them to be numbers as well. MihaiIt shares with Elango's the idea that the AST will encode the type of the selector. I don't understand what's the reason for that. I come to the conversation with the proposal to treat any selector as a function call with arguments that can return a value that we can match to keys of variants. Nothing is "special". I don't see how it passes variables to a By the way, I don't see any information in any of our ASTs on which variant should be used in case none matches. I think it's important to either have it encoded in AST or standardized that the "last one" is (and then enforce at least one variant). EemeliThis model is closest to my mental model. It's interesting that it encodes a nested The keys of the select are strings, I think we should allow for numbers. ======= Reviewing the other models and mine, I see the following shortcomings of my proposed model:
I'd love to hear people's take on the other shortcomings of my model. |
Beta Was this translation helpful? Give feedback.
-
Copied all 4 current models to the |
Beta Was this translation helpful? Give feedback.
-
This discussion is a placeholder to concatenate 2 different tasks :
1- Definition in how do we express our schema #139
2- How we work as a group to normalize and merge Data Models #140
Beta Was this translation helpful? Give feedback.
All reactions