This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
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 changes to comprehensions and identifiers
This CL has two somewhat proposals, although they can be split: 1) Make fields with string labels non-referrable and introduce allowing backtick for identifiers. So a.`for` would be a valid selector. This simplifies the spec a bit as there is no explanation needed why interpolated strings cannot be referenced. Using `` has precedence in BCL and swift. It solves the issue of code generation, where it can be hard to track referred values and it allows referencing keywords and other fields alike. 2) Now we have embedding there is a nicer way to write comprehensions. The proposed change solves many issues. Change-Id: I8ba25bd3a6b9a9d790dcecbd3b5954a969440396 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/2950 Reviewed-by: Marcel van Lohuizen <[email protected]>
- Loading branch information
Showing
1 changed file
with
86 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters