Skip to content

Commit 1646e68

Browse files
committed
Rephrase initial resolved value definition
1 parent 2b48b88 commit 1646e68

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

spec/formatting.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -86,29 +86,27 @@ Implementations MAY include additional fields in their _formatting context_.
8686

8787
## Resolved Values
8888

89-
This specification allows for the same value to be used for:
90-
- formatting in a _placeholder_,
91-
- selection with a _selector_,
92-
- as the _operand_ of another _expression_ (including _local declarations_), or
93-
- as an _option_ value in another _expression_,
89+
During formatting, the **_<dfn>resolved value</dfn>_** of each
90+
_text_, _literal_, _variable_, _expression_, and _markup_
91+
is determined using the _formatting context_.
92+
Each _resolved value_ is an implementation-defined value which
93+
MAY support selection, formatting, and/or use as an _operand_ or _option_ value.
9494

95-
To support this, the **_<dfn>resolved value</dfn>_** of each _expression_
96-
is an implementation-dependent value that supports some or all of the above use cases.
97-
98-
In a _declaration_, the _resolved value_ of the _expression_ is bound to a _variable_,
99-
which is available for use by later _expressions_.
100-
Since a _variable_ can be referenced in different ways later,
101-
implementations SHOULD NOT immediately fully format the value for output.
95+
In a _declaration_, the _resolved value_ of an _expression_ is bound to a _variable_,
96+
which makes it available for use in later _expressions_ and _markup_ _options_.
10297

10398
> For example, in
10499
> ```
105-
> .input {$a :number minimumIntegerDigits=3}
106-
> .local $b = {$a :number maximumFractionDigits=3}
100+
> .input {$a :number minimumFractionDigits=3}
101+
> .local $b = {$a :integer notation=compact}
102+
> .match $a
103+
> 0 {{The value is zero.}}
104+
> * {{In compact form, the value {$a} is rendered as {$b}.}}
107105
> ```
108-
> the value bound to `$a` is the
109-
> _resolved value_ used as the _operand_
110-
> of the `:number` _function_
111-
> when resolving the value of the _variable_ `$b`.
106+
> the _resolved value_ bound to `$a` is used as the _operand_
107+
> of the `:integer` _function_ when resolving the value of the _variable_ `$b`,
108+
> as a _selector_ in the `.match` statement,
109+
> as well as for formatting the _placeholder_ `{$a}`.
112110
113111
In an _input-declaration_, the _variable_ operand of the _variable-expression_
114112
identifies not only the name of the external input value,

0 commit comments

Comments
 (0)