-
It looks like
would fail with the following error (using https://tip.cuelang.org/play/?id=kTgiOQPmiqe):
The following works:
but I would like to restrain the scope of Alias would kind of work:
but does not seem to what I want because the "dummy" label is useless and if re-use somewhere else possibly damaging. Thanks for your help. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
The usecase might still be a valid one but as far as I am concerned this is not blocking or a big deal. |
Beta Was this translation helpful? Give feedback.
-
Attributes are indeed not allowed on Am I guessing correctly that you are envisioning picking up the attribute in the cue AST rather than the API? |
Beta Was this translation helpful? Give feedback.
-
This discussion has been migrated to cue-lang/cue#938. For more details about CUE's migration to a new home, please see cue-lang/cue#1078. |
Beta Was this translation helpful? Give feedback.
Attributes are indeed not allowed on
let
. I would be quite a substantial change to support, aslet
is not something that is visible in the API, for instance, and which is the only place were attributes are used.Am I guessing correctly that you are envisioning picking up the attribute in the cue AST rather than the API?