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
The current ITE requires the branches to be variables:
bits[index] = if bit_num == 1 {true_val} else {false_val};
This restriction makes it inconvenient to use the ITE in noname. Ideally, we should allow expressions in the branches.
Examples for feature enhancement:
Allow literals
bits[index] = if bit_num == 1 {true} else {false};
num = if cond == true {1} else {0};
Allow expressions
let mut counter = 0; // func_a and func_b has to return the same type num = if cond == true { counter = counter + 1; func_a(counter); } else { func_b() };
The text was updated successfully, but these errors were encountered:
Can you label this as easy/medium/hard? Can we provide more info and ask the open source community to take a look at it?
Sorry, something went wrong.
Sure, I added a few examples.
No branches or pull requests
The current ITE requires the branches to be variables:
This restriction makes it inconvenient to use the ITE in noname. Ideally, we should allow expressions in the branches.
Examples for feature enhancement:
Allow literals
Allow expressions
The text was updated successfully, but these errors were encountered: