The problem of ambiguity will be solved if a formatter (SE-0250: Swift Code Style Guidelines and Formatter) is adopted and Xcode also cooperates with it. Expressions connected to the previous line are easy to understand if nested one level.
For example, if formatted as below, it is easy to understand.
_ = [
"foo": foo
.method()
"bar": baz
]
let solutions = [
2*(1-sqrt(a))*sqrt(b+sqrt(b))
-(1+sqrt(a))*(sqrt(2*b)-sqrt(2))
] // two solutions
let solutions = [
2*(1-sqrt(a))*sqrt(b+sqrt(b))
- (1+sqrt(a))*(sqrt(2*b)-sqrt(2))
] // one solution
var x : Any = [
foo
(6 * 9) // Function application or separate value?
]
let foo: (Int) -> Int = { $0 * 2 }
let x = foo
(6 * 9) // Function application or separate value?