Skip to content

Introduce condition expression to IfExpression #855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tesuji opened this issue Jul 26, 2020 · 1 comment
Closed

Introduce condition expression to IfExpression #855

tesuji opened this issue Jul 26, 2020 · 1 comment

Comments

@tesuji
Copy link
Contributor

tesuji commented Jul 26, 2020

The current reference syntax of IfExpression is not clear enough:
image

I had to read more on explanation that:

The form of an if expression is a condition expression, followed by a consequent block, any number of else if conditions and blocks, and an optional trailing else block

So I think introduce a condition expression in syntax might make sense.
Prior art in other languages:

@ehuss
Copy link
Contributor

ehuss commented May 3, 2025

Closing as we now have a Conditions rule via #1740.

@ehuss ehuss closed this as completed May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants