Dot and bracket path segments are interchangeable everywhere
The rule
Normative: this is the rule
- A property path may be written with dot segments, bracket segments, or a mixture of the two.
- An implementation normalizes them to a single form before parsing, and every place it reads a property path resolves the two spellings identically.
Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0-draft · LANG-17 · changed in spec 1.0