Skip to content

Optional parentheses for 1-ary function application #697

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#697 (comment)

not is defined differently, so in this case one should write must(binaryFunc(field, somethingElse) >= 5) but I see your point.

I'm thinking it may possibly result in too many ambiguities and complications, but I see your point.

There are a bunch of other builtins being designed in unison with must and not to clear up the meaning of (and get rid of) comparisons to _|_ (officially unsupported), make "switching" nicer, and probably to deprecate _|_ altogether in the process. It may be best to suggest it there, if it still makes sense.

Replies: 2 comments 2 replies

Comment options

cueckoo
Jul 3, 2021
Collaborator Author

You must be logged in to vote
1 reply
@cueckoo
Comment options

cueckoo Jul 3, 2021
Collaborator Author

Comment options

cueckoo
Jul 3, 2021
Collaborator Author

You must be logged in to vote
1 reply
@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