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
Long chains of if-else-if-else-if-else are annoying to right now as they will continuously increase indentation.
I propose a python-like if-elif-else
if a: ... elif b: ... else: ...
Other options for keywords are elsif and else if
elsif
else if
An alternative syntax would be like a switch
if: case a: ... case b: ... else: ...
Or using when like in bend. I like the first one because it is already what people expect from a python-looking language.
when
The text was updated successfully, but these errors were encountered:
Merge pull request #511 from HigherOrderCO/427-request-else-if-chains
7cb38c2
#427 else if chains
imaqtkatt
Successfully merging a pull request may close this issue.
Long chains of if-else-if-else-if-else are annoying to right now as they will continuously increase
indentation.
I propose a python-like if-elif-else
Other options for keywords are
elsif
andelse if
An alternative syntax would be like a switch
Or using
when
like in bend.I like the first one because it is already what people expect from a python-looking language.
The text was updated successfully, but these errors were encountered: