-
Notifications
You must be signed in to change notification settings - Fork 170
spec/cycles/Structural_cycles: optional field bug? #145
Comments
This feature is relevant to a little testing package I'm working on refining, if supported it would allow me to infinitely nest |
You might try with the latest master. Marcel made some updates that I think might be relevant.
|
I tested this does not work with the new version. This is indeed another case. The current implementation explicitly tests for disjunctions that allow such infinite structure. But optional fields implicitly such a disjunction. And as @rudolph9 correctly notes, the spec allows for such cases. Note that none of this is related to evaluation, but merely to printing. The engine is happy to compute on infinite structures. It is just the representation of these infinite structures that is causing the trouble. |
This issue has been migrated to cue-lang/cue#145. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
spec/cycles/Structural_cycles
Arguably the following falls under the category of
but in the current version of cue it doesn't return (probably eventually a stack overflow error but killed it after like 5 minutes).
I could also see this fall under the category of an infinite cycle so could use some clarity around if it's a bug with the evaluation or if it just need some clarity in the doc and maybe make sure it's detected in the cycle check that will eventually be rolled #29
The text was updated successfully, but these errors were encountered: