cue-lang / docs-and-content

A place to discuss, plan, and track documentation on cuelang.org
5 stars 1 forks source link

Equivalence and comparability #49

Open jpluscplusm opened 7 months ago

jpluscplusm commented 7 months ago

We don't currently explicitly document how CUE treat fields/lists/structs when comparing them. We should write a piece of documentation that explains this, including elements that address:

myitcv commented 7 months ago

If this isn't sufficiently covered in the spec we should also raise an issue in https://github.com/cue-lang/cue

jpluscplusm commented 7 months ago

If this isn't sufficiently covered in the spec we should also raise an issue in https://github.com/cue-lang/cue

I've raised https://github.com/cue-lang/cue/issues/2779, which is tightly coupled to the explicit mention in list.Contains' documentation that its second argument must be comparable.

I believe that in conjunction with the existing issues https://github.com/cue-lang/cue/issues/2583, https://github.com/cue-lang/cue/issues/2027, https://github.com/cue-lang/cue/issues/2026, and https://github.com/cue-lang/cue/issues/2024, there's enough coverage of any gap between the spec and the implementation.