From 99711cfa117cef63b79511e4e82365d92bf181c2 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Wed, 7 Feb 2024 14:02:24 -0800 Subject: [PATCH 1/2] Clarify when "additional processing" of a named value occurs This change clarifies that when an implementation "performs additional processing" on the expression of a declaration, that expression must be a variable with no annotation. --- spec/formatting.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/spec/formatting.md b/spec/formatting.md index dd71c96a0f..c5c0f7a89d 100644 --- a/spec/formatting.md +++ b/spec/formatting.md @@ -131,12 +131,11 @@ its resolved value is defined according to the implementation's specification. Else, if the _expression_ contains an _annotation_, its resolved value is defined by _function resolution_. -Else, the _expression_ will contain only either a _literal_ or a _variable_. - -If the _expression_ consists of a _variable_, +Else, if the _expression_ consists of a _variable_, its resolved value is defined by _variable resolution_. An implementation MAY perform additional processing -when resolving the value of the _expression_. +when resolving the value of an _expression_ +that consists only of a _variable_. > For example, it could apply _function resolution_ using a _function_ > and a set of _options_ chosen based on the value or type of the _variable_. @@ -151,8 +150,8 @@ when resolving the value of the _expression_. > the implementation could interpret the _placeholder_ `{$date}` as if > the pattern included the function `:datetime` with some set of default options. -Else, if the _expression_ consists of a _literal_, -its resolved value is defined by _literal resolution_. +Else, the _expression_ must consist of a _literal_. +Its resolved value is defined by _literal resolution_. > **Note** > This means that a _literal_ value with no _annotation_ From 169c50108741ba4d4440341c2edf098395ace939 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Wed, 7 Feb 2024 14:58:40 -0800 Subject: [PATCH 2/2] Update spec/formatting.md Co-authored-by: Addison Phillips --- spec/formatting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/formatting.md b/spec/formatting.md index c5c0f7a89d..e6f09a04da 100644 --- a/spec/formatting.md +++ b/spec/formatting.md @@ -150,7 +150,7 @@ that consists only of a _variable_. > the implementation could interpret the _placeholder_ `{$date}` as if > the pattern included the function `:datetime` with some set of default options. -Else, the _expression_ must consist of a _literal_. +Else, the _expression_ consists of a _literal_. Its resolved value is defined by _literal resolution_. > **Note**