Replies: 4 comments 4 replies
-
Original reply by @seh in cuelang/cue#430 (comment) An alias would probably help here. If you try that, your experience might intersect with mine in #380, though there's no embedding here. |
Beta Was this translation helpful? Give feedback.
-
Original reply by @b4nst in cuelang/cue#430 (comment) Yeah, actually I just found #380 and saw your ref to my issue after finishing reading it 😂. Indeed, there's no embedding here, but the alias/self reference would be really helpful in that case too. I think I've tried tried every syntax guess (like |
Beta Was this translation helpful? Give feedback.
-
Original reply by @seh in cuelang/cue#430 (comment) It's like learning C: "Did you try adding an asterisk? How many did you add? Try another one." |
Beta Was this translation helpful? Give feedback.
-
Original reply by @myitcv in cuelang/cue#430 (comment) FYI, we have discussions enabled for this repo, helping the GitHub folks to try out that beta. This is a perfect candidate for a discussion. Indeed, I'm going to try and press a button now that will convert this to a discussion. Fingers crossed it will work... apologies in advance if it doesn't! |
Beta Was this translation helpful? Give feedback.
-
Originally opened by @b4nst in cuelang/cue#430
I want to reference a field from the parent scope of a definition, is there a way to do that ?
Obviously the problem here is that the nested field has the same name than the parent field, so it resolve to itself. Currently the only fix I found was to create an hidden alias field:
It's working but it would be nice if I could directly reference the root field in some way.
Beta Was this translation helpful? Give feedback.
All reactions