Open knocte opened 4 months ago
Even if F# follows strict precedence rules, programmers are not infallible and might not know them.
Therefore, for code like this:
let it = 1 |> (fun a b -> a) <| 2
It would be better to recommend parentheses:
let it = (1 |> (fun a b -> a)) <| 2
More testcases:
a || b && c
(should give suggestion)
(a || b) && c
(should not give suggestion)
a || (b && c)
Even if F# follows strict precedence rules, programmers are not infallible and might not know them.
Therefore, for code like this:
It would be better to recommend parentheses: