What does a keyword do? #1345
Answered
by
verdverm
quovadis1234
asked this question in
Q&A
-
In this section, it says that CUE reserves all identifiers starting with __(double underscores) as keywords. |
Beta Was this translation helpful? Give feedback.
Answered by
verdverm
Oct 28, 2021
Replies: 1 comment 1 reply
-
https://github.com/cue-lang/cue/search?q=__ looks to have some breadcrumbs. As I understand it, they are largely internal and you shouldn't see them as a user. You can use quotes to have labels which contain special chars "#def": "not really a definition"
"_hid": "not really hidden"
"__foo": "not really a reserved identifier" |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
myitcv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/cue-lang/cue/search?q=__ looks to have some breadcrumbs. As I understand it, they are largely internal and you shouldn't see them as a user.
You can use quotes to have labels which contain special chars
https://cuelang.org/play/?id=ysVprjTceqV#cue@export@json