-
Originally opened by @PierreR in cuelang/cue#938 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: 2 comments 2 replies
-
Original reply by @PierreR in cuelang/cue#938 (comment) 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.
-
Original reply by @mpvl in cuelang/cue#938 (comment) 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.
Original reply by @mpvl in cuelang/cue#938 (comment)
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?