-
Notifications
You must be signed in to change notification settings - Fork 189
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
Add ternaries (b ? c : d) #221
Comments
Hi, This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. |
Keep |
Hi, This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. |
It would be pretty cool if we could reuse |
I like the idea of turning |
Personally I find ternaries readable and dislike |
I agree with @MarkMcCulloh I find the |
Hi, This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. |
The syntactic ambiguity raised by @yoav-steinberg is valid - fortunately, I think the visual similarity between The "traditional" ternary syntax Type checking this expression can be modeled after the logic already used for type checking simple if/else statements in the compiler. I'll mark this as a good issue if anyone wants to pick this up! |
We'd like to add support for ternaries.
The text was updated successfully, but these errors were encountered: