Skip to content

A property path that cannot be read is a miss, not a null

Property paths never raise. A path that cannot be read is a miss, and a reader can tell it apart from a path that reads a stored null, as LANG-24 needs.

The rule

Normative: this is the rule
  1. Property-path evaluation MUST NOT raise.
  2. A path that cannot be read MUST be a miss: it yields no value, and the evaluation MUST report that nothing matched.
  3. A path that reads a stored null MUST yield null and report a match.

Why

Recorded under OPEN-25, OPEN-26.

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-8 · changed in spec 1.0