-
-
Notifications
You must be signed in to change notification settings - Fork 205
Closed
Description
F# Style-guide says:
Formatting mutation expressions
Mutation expressions location <- expr are normally formatted on one line.
So this is the correct style:
let test x =
if x.IsNone then
x.Value <- "a"
()The mutation is so untypical and notable action, that it should not be hidden, it should be always bring into attention of the person reading the code. But Fantomas dumps the <- arrow some times to same line as pre-conditions, e.g.:
let test x =
if x.IsNone then x.Value <- "a"
()
knocte
Metadata
Metadata
Assignees
Labels
No labels