Skip to content

Commit 003be40

Browse files
aphillipseemeli
andauthored
Address #575: say that data model uses name for identifier (#668)
* Address #575: say that data model uses `name` for `identifier` Per our discussion of #575, we want to say that the field `name` in the data model encompasses the production `identifier` in cases where the name is an identifier. Fixes #575. * Apply suggestions from code review Co-authored-by: Eemeli Aro <[email protected]> * link syntax --------- Co-authored-by: Eemeli Aro <[email protected]>
1 parent 5223e17 commit 003be40

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

spec/data-model/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ the JSON and DTD definitions are intended for interchange between systems and pr
4646
To that end, they relax some aspects of the data model, such as allowing
4747
declarations, options, and attributes to be optional rather than required properties.
4848

49+
> [!IMPORTANT]
50+
> The data model uses the field name `name` to denote various interface identifiers.
51+
> In the MessageFormat 2 [syntax](/spec/syntax.md), the source for these `name` fields
52+
> sometimes uses the production `identifier`.
53+
> This happens when the named item, such as a _function_, supports namespacing.
54+
>
55+
> In the Tech Preview, feedback on whether to separate the `namespace` from the `name`
56+
> and represent both separately, or just, as here, use an opaque single field `name`
57+
> is desired.
58+
4959
## Messages
5060

5161
A `SelectMessage` corresponds to a syntax message that includes _selectors_.
@@ -87,7 +97,7 @@ starting after the keyword and up to the first _expression_,
8797
not including leading or trailing whitespace.
8898
The non-empty `expressions` correspond to the trailing _expressions_ of the _reserved statement_.
8999

90-
> **Note**
100+
> [!NOTE]
91101
> Be aware that future versions of this specification
92102
> might assign meaning to _reserved statement_ values.
93103
> This would result in new interfaces being added to

0 commit comments

Comments
 (0)