Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for condensed style with | and || #208

Open
fowlay opened this issue Nov 12, 2020 · 1 comment
Open

Option for condensed style with | and || #208

fowlay opened this issue Nov 12, 2020 · 1 comment
Labels
configuration idea style change Improvements on a formatter style

Comments

@fowlay
Copy link

fowlay commented Nov 12, 2020

Currently, default_formatter formats this code…

[A|B] = [X||X <- Y]

…like this…

[A | B] = [X || X <- Y]

I would like it to be formatted like this…

[A|B] = [X||X <- Y]

An option for "condensed style" would be appreciated. When using paper width = 80 no space must be wasted :)

The condensed style may not be mainstream, but it is used in this old guide (although somewhat inconsistently): http://www.erlang.se/doc/programming_rules.shtml

@fowlay fowlay added configuration idea style change Improvements on a formatter style labels Nov 12, 2020
@elbrujohalcon
Copy link
Collaborator

I like it!

I'm not sure how feasible this would be… considering what's discussed in #199

It might require a new formatter altogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration idea style change Improvements on a formatter style
Projects
None yet
Development

No branches or pull requests

2 participants