Skip to content

Current syntactic and semantic redundancies #699

Answered by cueckoo
cueckoo asked this question in Ideas
Discussion options

You must be logged in to vote

Original reply by @mpvl in cuelang/cue#699 (comment)

Thanks for the feedback. I'll try to explain the raison d'etre of the various constructs. I'll be curious to hear if that explains the differences sufficiently or if there is still an uneasy feeling of redundancy or suggestions for simplifications, beyond the ones confirmed below.

Aliases

Unlike fields, which always have a :, an alias, never introduces something new and always just introduces a different name to refer to an existing element, whether it be a value or field. Moreover, the only other place where = is used is in let. More on let below. But for now, basically, any use of = never introduces something that influences unification.

Replies: 1 comment 2 replies

Comment options

cueckoo
Jul 3, 2021
Collaborator Author

You must be logged in to vote
2 replies
@cueckoo
Comment options

cueckoo Jul 3, 2021
Collaborator Author

@cueckoo
Comment options

cueckoo Jul 3, 2021
Collaborator Author

Answer selected by cueckoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant