Open cgay opened 5 years ago
Another language has gone for not doing things that line up like your last example ... that way, people can use non-monospace fonts if they like!
Do not want.
There's also a fair amount of this style, and Peter Housel prefers it over my first choice above:
let foo = really-long-function-name
(long-argument-1(),
long-argument-2())
and I think it should be possible to support both styles depending on whether the open paren is (a) preceded by all whitespace or (b) followed by only whitespace and comments.
I recently learned the term for what I want, and it is https://github.com/google/google-java-format/wiki/The-Rectangle-Rule
What we have now:
What I want:
Note, never this:
If there's an argument immediately following the open paren then subsequent args should line up under the first (as they do currently):