Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc/ref/spec.md: revert to the old semantics of [k]: v
As it turns out, the old semantics is quite frequently used. Even though it is not hard to simulate the old semantics with the proposed new one, it is still inconvenenient. We do need the more JSON Schema-like semantics, though, as it is hard to simulate with the old semantics. The idea is now to allow `[...K]: V` for pattern constraints to be applied to "additional" fields. So now any constraint that applies to additional fields uses `...`. Another advantage is thats, as we have not yet made the transition to the new semantics, this eliminates a possibly painful transition. Change-Id: Iebd2af03e4929d058e4f3134d77d2071ef3ee82e Reviewed-on: https://cue-review.googlesource.com/c/cue/+/7942 Reviewed-by: Paul Jolly <paul@myitcv.org.uk> Reviewed-by: CUE cueckoo <cueckoo@gmail.com>
- Loading branch information