mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Prefer and
and or
for boolean operators
This commit is contained in:
parent
d9d3fc74fc
commit
a292e070d4
35 changed files with 189 additions and 282 deletions
|
@ -2460,7 +2460,7 @@ fn issue_4557() {
|
|||
app "test" provides [main] to "./platform"
|
||||
|
||||
is_eq_q = \q1, q2 -> when T q1 q2 is
|
||||
T (U f1) (U f2) -> Bool.or (is_eq_q (U f2) (U f1)) (f1 {} == f2 {})
|
||||
T (U f1) (U f2) -> (is_eq_q (U f2) (U f1)) or (f1 {} == f2 {})
|
||||
|
||||
main = is_eq_q (U \{} -> "a") (U \{} -> "a")
|
||||
"#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue