-
-
Notifications
You must be signed in to change notification settings - Fork 146
Open
Milestone
Description
As formatted by 0.27 in playground
Input:
var dummy = new DestructuringOptionsBuilder()
.WithDefaultDestructurers()
.WithDestructurers([
new FirstDestructurer(),
new SecondDestructurer(),
new ThirdDestructurer(),
new FourthDestructurer(),
]);Output:
var dummy = new DestructuringOptionsBuilder()
.WithDefaultDestructurers()
.WithDestructurers(
[
new FirstDestructurer(),
new SecondDestructurer(),
new ThirdDestructurer(),
new FourthDestructurer(),
]
);Expected behavior:
Input seems better to me when there's only a single parameter that is a collection.
Using two lines for single characters [ and ], and increasing indentation, doesn't seem beneficial in this situation.
I note that this is somewhat similar to the idea that for a single lambda parameter x => ..., it's nicer to keep Method(x => rather than putting x => on a line of its own.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels