Skip to content

Proposal for separating patterns in Style convention #1014

Open
@mechvel

Description

@mechvel

I suggest to allow some more separator for the lines of patterns in the same function and between function bodies.
Because it is very difficult to read the source code in lib-1.2.
Function bodies look somewhat like this:

f pattrern1 ... =  ...
  where
  def1 ...
  def-n ...
f pattern2 ... = ....
  where
  ...

g : ...

The bodies for (f pattern1), (f pattern2) ... often have long lines and are pressed to each other.
So that it is difficult to observe where there starts the body of the next pattern.
I suggest to allow to insert empty line between the body of the pattern and the head of the next pattern of the same function.
If this is allowed, then we also need to allow to insert one more empty line after the body of each (upper level) function.
This will make observing/reading of the source much easier.

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