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
Similar to the previous issues I've opened, this time it's for that is having trouble with cycles:
X: Y.message
STATE: {
for k, v in Y {
if k != "message" {
"\(k)": v
}
}
}
Y: STATE & {
message: X
}
This is a simple stateful bidirectional projection expressed in CUE (STATE is saved and restored as needed). In one way, Y is forked into X and STATE. In the other way, X and STATE are joined into Y. Two usage examples are:
X: "test"
STATE: {
code: 101
}
and
Y: {
message: "test"
code: 101
}
Both of which errors out with a cycle error. Even defining X, STATE, and Y all at the same time causes a cycle error.
The text was updated successfully, but these errors were encountered:
@Ereski We could probably break this cycle if we allow comprehensions that insert fields in structs that are used as a source that do not introduce any new fields.
Originally opened by @Ereski in cuelang/cue#779
Current master (2c86835)
Similar to the previous issues I've opened, this time it's
for
that is having trouble with cycles:This is a simple stateful bidirectional projection expressed in CUE (
STATE
is saved and restored as needed). In one way,Y
is forked intoX
andSTATE
. In the other way,X
andSTATE
are joined intoY
. Two usage examples are:and
Both of which errors out with a cycle error. Even defining
X
,STATE
, andY
all at the same time causes a cycle error.The text was updated successfully, but these errors were encountered: