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
if
Our if is actually not readable, especially with nested ifs. Instead of writing e.g.
if (y1 == 0) q (if (y2 == 0) p (if (x1 == x2) (if (y1 == y2) (double p) (mkPoint 0 0)) (let slope := (y1 - y2) / (x1 - x2); r_x := slope * slope - x1 - x2; r_y := slope * (x1 - r_x) - y1; in mkPoint r_x r_y)));
we should be able to write e.g.
if | y1 == 0 := q | y2 == 0 := p | x1 == x2 := if | y1 == y2 := double p | else := mkPoint 0 0 | else := let slope := (y1 - y2) / (x1 - x2); r_x := slope * slope - x1 - x2; r_y := slope * (x1 - r_x) - y1; in mkPoint r_x r_y;
The text was updated successfully, but these errors were encountered:
case
Multiway if syntax (#2770)
851afba
* Closes #2736
lukaszcz
Successfully merging a pull request may close this issue.
Our
if
is actually not readable, especially with nested ifs. Instead of writing e.g.we should be able to write e.g.
The text was updated successfully, but these errors were encountered: