-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all: remove support for list arithmetic
And adjust or remove tests that use list arithmetic. This has a knock-on effect that in cuego, tags which indicate list length are no longer supported. E.g. `cue:"3*[int|*1]"`. We cannot automatically fix these use cases, but we also don't expect this change to cause breakages as list arithmetic has been undocumented for years and cuego tags tend to be simple expressions. Some of the fixes to tests expose different bugs/limitations in evalv2, though work fine with evalv3, so it's possible evalv2 users will experience more bugs after this change. But these are only in very odd semi-cyclic scenarios. Note that this breaking language change is not based on `language.version` from `cue.mod/module.cue`; the language spec has not mentioned arithmetic on lists for years, and aligning the evaluator with the spec has been planned for some time. Moreover, every CUE configuration should be able to switch to `list.Concat` and `list.Repeat`, for example via `cue fix`. Fixes #2237 Signed-off-by: Matthew Sackman <[email protected]> Change-Id: I39fe190ac2131f60734f91485474e9c94758367f Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1200221 Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]>
- Loading branch information
1 parent
6f4983e
commit 46fb300
Showing
16 changed files
with
478 additions
and
1,352 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.