We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I find it very common to need a ternary operator-like construct when creating variables, for example:
1. Let |foo| be |x| if |condition| and |y| otherwise.
The infra standard suggests this needs to be defined like so:
1. Let |foo| be null. 1. If |condition|, then set |foo| to |x|. 1. Otherwise, then set |foo| to |y|.
This seems unnecessarily verbose. Could we allow the shorthand version somehow?
The text was updated successfully, but these errors were encountered:
I think we should, I use that shorthand a lot, with parentheses around the conditional.
Sorry, something went wrong.
Declare a variable using a ternary construct
e6fb2a1
Fixes #157.
Add an example of declaring a variable using a ternary construct
ad786ae
No branches or pull requests
I find it very common to need a ternary operator-like construct when creating variables, for example:
The infra standard suggests this needs to be defined like so:
This seems unnecessarily verbose. Could we allow the shorthand version somehow?
The text was updated successfully, but these errors were encountered: