This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
Replies: 2 comments 1 reply
-
It is a little confusing to use the word "attribute" because Cue has a separate concept for attributes. Cue does not work with attributes directly (i.e. you cannot compute or unify with them) and they are only accessible via the Go API. Cue does this with https://cuelang.org/docs/references/spec/#attributes Maybe 'field' or 'field values' would be better? |
Beta Was this translation helpful? Give feedback.
1 reply
-
This discussion has been migrated to cue-lang/cue#679. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It can be beneficial to be able to group a list of similar structs by a common field name. As shown below, Cuelang accomplish this quite easily.
See this in action --> https://cuelang.org/play/?id=u0BdnMvW_Cf#cue@export@cue
Beta Was this translation helpful? Give feedback.
All reactions