I have a strong dislike of code where -> and <- appear on the same line:
let f x =
let mutable keepGoing = false
match x with
| Some _ -> ()
| None -> keepGoing <- false
Because this code is relatively rare I think we should consider a style guide entry to explicitly say "put this on two lines"
let f x =
let mutable keepGoing = false
match x with
| Some _ ->
()
| None ->
keepGoing <- false
I have a strong dislike of code where
->and<-appear on the same line:Because this code is relatively rare I think we should consider a style guide entry to explicitly say "put this on two lines"