Skip to content

F# code formatting guidelines: Space before DU constructor arguments? #22664

@cmeeren

Description

@cmeeren

In the F# code formatting guidelines, I can find no descriptions of whether DU cases should have a space before a parenthesized argument:

let opt1 = Some ()
let opt2 = Some (1, 2)

or:

let opt1 = Some()
let opt2 = Some(1, 2)

Could this be clarified and added? I can add a PR, but let's find out what it should be first.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions