Replies: 2 comments
-
Copying across @mpvl's response from Slack
The punchline here being that CUE will not add support for algebraic solving, but that a third-party tool could do such a thing with CUE as a basis for the approach. I would be hugely interested in such a tool/exploration if someone were to start it. |
Beta Was this translation helpful? Give feedback.
-
This discussion has been migrated to cue-lang/cue#971. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
-
Following up from previous discussion in the "language" channel of the "CUE" Slack workspace, I'm interested in probing how CUE can resolve certain interdependencies among attributes—what I think of as propagator network examples—but not others. For example, it can handle arithmetic:
You can supply any two of the a, b, and c fields and CUE can figure out the missing third.
With a somewhat analogous example using strings, consider the following:
If you leave out field a or b and include result, CUE can figure out the missing one. If you leave out result, though, CUE doesn’t come up with a complete value for it. I can see some circularity in how result depends partly on a, and a depends on part of result. Why doesn't that problem afflict the first example as well?
Beta Was this translation helpful? Give feedback.
All reactions