Replies: 4 comments 5 replies
-
I haven't found a solution to the more general problem of safely (without the risk of clashes from outer scopes) referencing fields within the current block/struct. The spec mentions neither |
Beta Was this translation helpful? Give feedback.
-
Some related discussion in #380 Moving the definition you want to iterate over to another package and embedding that package is one solution. But slightly depends what you are trying to do? |
Beta Was this translation helpful? Give feedback.
-
You could use an alias:
|
Beta Was this translation helpful? Give feedback.
-
This discussion has been migrated to cue-lang/cue#457. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to iterate over top-level fields? For example:
Beta Was this translation helpful? Give feedback.
All reactions