Skip to content

[style-guide] Parameter owner patterns should be consistent with prefix application expressions #712

@auduchinok

Description

@auduchinok

Union cases patterns should be consistent with their creation expressions, like this:

let _ = Foo x
let _ = Bar(1, 2)

match s with
| Foo x -> ()
| Bar(1, 2) -> ()

Currently Fantomas adds an extra space in the last pattern, which makes it inconsistent. I propose we should fix this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions