Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 662c97f

Browse files
eemelicatamorphismaphillips
authored
Add Resolved Values and Function Handler sections to formatting (#728)
* Add Resolved Values section to formatting * Apply suggestions from code review * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Tim Chevalier <[email protected]> * Linkify "resolved value" * Add some examples & explicitly allow wrapping input values * No throw, only emit Co-authored-by: Tim Chevalier <[email protected]> * Add section on Function Handlers, defining the term * Apply suggestions from code review * Rephrase initial resolved value definition * Update spec/formatting.md Co-authored-by: Eemeli Aro <[email protected]> * Update resolved value definition again Co-authored-by: Addison Phillips <[email protected]> --------- Co-authored-by: Tim Chevalier <[email protected]> Co-authored-by: Addison Phillips <[email protected]>
1 parent 22707c7 commit 662c97f

File tree

5 files changed

+181
-153
lines changed

5 files changed

+181
-153
lines changed

spec/errors.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ a reference to a function which cannot be resolved.
269269
### Bad Selector
270270
271271
A **_<dfn>Bad Selector</dfn>_** error occurs when a message includes a _selector_
272-
with a resolved value which does not support selection.
272+
with a _resolved value_ which does not support selection.
273273
274274
> For example, attempting to format this message
275275
> would result in a _Bad Selector_ error:
@@ -283,10 +283,10 @@ with a resolved value which does not support selection.
283283
## Message Function Errors
284284
285285
A **_<dfn>Message Function Error</dfn>_** is any error that occurs
286-
when calling a message function implementation
286+
when calling a _function handler_
287287
or which depends on validation associated with a specific function.
288288
289-
Implementations SHOULD provide a way for _functions_ to emit
289+
Implementations SHOULD provide a way for _function handlers_ to emit
290290
(or cause to be emitted) any of the types of error defined in this section.
291291
Implementations MAY also provide implementation-defined _Message Function Error_ types.
292292
@@ -300,7 +300,7 @@ Implementations MAY also provide implementation-defined _Message Function Error_
300300
> 3. Uses a `:get` message function which requires its argument to be an object and
301301
> an option `field` to be provided with a string value.
302302
>
303-
> The exact type of _Message Function Error_ is determined by the message function implementation.
303+
> The exact type of _Message Function Error_ is determined by the _function handler_.
304304
>
305305
> ```
306306
> Hello, {horse :get field=name}!

0 commit comments

Comments
 (0)