Skip to content

Shaper sentinels resolve before any engine is consulted

The rule

Normative: this is the rule
  1. A shaper source MUST be checked for sentinels before its engine is consulted.
  2. _NOW_ MUST yield the current timestamp in ISO 8601 form.
  3. _NULL_ MUST yield null.
  4. _EMPTY_ARRAY_ MUST yield the empty array.
  5. _EMPTY_OBJECT_ MUST yield the empty object.
  6. A source prefixed _LITERAL: MUST yield the rest of the string verbatim.
  7. A source that does reach the engine and fails there MUST fail the node.
  8. The failure MUST name the source expression and the engine.

Why

Recorded under OPEN-25.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · LANG-25 · changed in spec 1.0