Skip to content

Incosistent newline between operator and do keyword #1150

@cblp

Description

@cblp
a =
  ( b &~ do
      c
      d
  )

is ok, but

a =
  ( &~
      do
        c
        d
  )

is ugly and inconsistent with previous.

Context: I love to use endofunctions for optional arguments pattern, and State lenses in combination with (&~ do...) syntax are perfect means to write them. Extra line really bothers me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    styleNitpicking and things related to purely visual aspect for formatting.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions