Relax indentation rules on anonymous records
I propose we relax indentation rules on anonymous records.
The existing way of approaching this problem in F# is indenting code blocks further, leaving wasted space.
let f x = x
let a = f [
2 // List: OK
]
let b = [|
2 // Array: OK
|]
type X = { X : int }
let c = f {
X = 2 // Record: OK
}
let d = f {|
X = 2 (* FS0058 Possible incorrect indentation:
this token is offside of context started at position (12:11).
Try indenting this token further or using standard formatting conventions. *)
|}
let e = f {|
X = 2 // Indenting further is needed
|}
Pros and Cons
The advantages of making this adjustment to F# are
- Parity
- Convenience
- Effective use of space
- Clarity
The disadvantages of making this adjustment to F# are none.
Extra information
Estimated cost (XS, S, M, L, XL, XXL): S
Related suggestions: (put links to related suggestions here)
Affidavit (please submit!)
Please tick this by placing a cross in the box:
Please tick all that apply:
Relax indentation rules on anonymous records
I propose we relax indentation rules on anonymous records.
The existing way of approaching this problem in F# is indenting code blocks further, leaving wasted space.
Pros and Cons
The advantages of making this adjustment to F# are
The disadvantages of making this adjustment to F# are none.
Extra information
Estimated cost (XS, S, M, L, XL, XXL): S
Related suggestions: (put links to related suggestions here)
Affidavit (please submit!)
Please tick this by placing a cross in the box:
Please tick all that apply: