-
Notifications
You must be signed in to change notification settings - Fork 254
Open
Description
Formatting this to 80 columns
func foo(someArgument: Int, andAnother: Int, andYetAnother: Int) -> Array<Substring> {
}
// produces
func foo(someArgument: Int, andAnother: Int, andYetAnother: Int) -> Array<
Substring
> {}Which is definitely not the most intuitive way of formatting it. I would have expected
func foo(
someArgument: Int,
andAnother: Int,
andYetAnother: Int
) -> Array<Substring> {}In a less extreme case, I would also expect the following to wrap the argument list instead of the return type
func foo(someArgument: Int, andAnother: Int, andYetAnother: Int, and: Int) -> Substring {}
// produces
func foo(someArgument: Int, andAnother: Int, andYetAnother: Int, and: Int)
-> Substring
{}func foo(someArgument: Int, andAnother: Int, andYet: Int, and: Int) -> Substring {}
// produces
func foo(someArgument: Int, andAnother: Int, andYet: Int, and: Int) -> Substring
{}Metadata
Metadata
Assignees
Labels
No labels