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
else if (...)
The lack of else if is awkward, makes it difficult to write some code.
A quick solution might be to encode the node as a literal else block containing a single if.
else
if
Sample spec
export function test(x: i32): i32 { if (x == 0) { return 2; } else if (x == 1) { return 4; } else { return -1; } }
That should do it.
The text was updated successfully, but these errors were encountered:
Support else if (...) branches
c1eb5f0
Implement #19
Successfully merging a pull request may close this issue.
Overview
The lack of else if is awkward, makes it difficult to write some code.
A quick solution might be to encode the node as a literal
else
block containing a singleif
.Sample spec
That should do it.
The text was updated successfully, but these errors were encountered: