You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Camelot does not recognize else if ... pattern, which is widely used to chain conditional expressions. This pattern does not reduce readability of the code.
let output =match do_something input with|Someoutput -> output
|None ->
match fallback1 input with|Someoutput -> ouput
|None ->
match fallback2 input with|Someoutput -> output
|None -> failwith "Giving up"
I consider this to be idiomatic and more readable than alternatives such as using higher-order functions or introducing helper functions. Unfortunately Camelot flags this as match statements nested too deep.
Describe the bug
Camelot does not recognize
else if ...
pattern, which is widely used to chain conditional expressions. This pattern does not reduce readability of the code.To Reproduce
Expected behavior
Camelot should recognize this pattern (chained
else if
) and issue no warning.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: