Skip to content

Handle long type parameter lists #77

@emchristiansen

Description

@emchristiansen

First, thanks for developing Scalariform. I use it hundreds of times a day.

The issue: I code in an extremely functional style, and often have very long type parameter lists. For example, this is a function signature from my code:

def relativeBenchmark[E <% RuntimeConfig => ExperimentRunner[R], R <% RuntimeConfig => ExperimentSummary](experiment: E): Double

Scalariform, used from Eclipse, tries to put all the type parameters on one line, meaning the above signature would extend beyond the 80 character mark.

Ideally: Please detect when a type parameter list is long and distribute it across multiple lines. I like this format:

def relativeBenchmark[
E <% RuntimeConfig => ExperimentRunner[R],
R <% RuntimeConfig => ExperimentSummary](experiment: E): Double

I'd be happy with: Don't format type parameter lists that extend across multiple lines.

Metadata

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