Skip to content

Space before argument option is too general #71

Closed
@ovatsus

Description

When set to false, we get this:

x.ToLower()
Seq.map(fun x -> x * 2)
Console.Writeline("something")
Some(a, b) -> ()

But when it's false we get this:

x.ToLower ()
Seq.map (fun x -> x * 2)
Console.Writeline ("something")
| Some (a, b) -> ()

What I would like to get is this:

x.ToLower()
Seq.map (fun x -> x * 2)
Console.Writeline("something")
| Some (a, b) -> ()

My suggestion is to remove the option and:

  1. If it's the unit () argument, don't add a space before the parens
  2. If it's a function with curried arguments like Seq.map etc., add a space before the parens
  3. If it's a function with tupled arguments, don't add a space before the parens
  4. If it's a DU constructor, add the space before the parens

What do you think?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions