You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 cuelang/cue#29
The text was updated successfully, but these errors were encountered:
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.
Originally opened by @rudolph9 in cuelang/cue#145
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 cuelang/cue#29
The text was updated successfully, but these errors were encountered: