SE-0257: Eliding commas from multiline expression lists

I suppose I'll have to repost this from the pitch thread because it doesn't seem to have been mentioned or addressed at all in the proposal under review (apologies if I somehow missed it).

I have come around to supporting the proposal, but I think this tradeoff should have been mentioned. There might be the opportunity for warnings here when operators have both prefix/postfix and infix forms, if deemed necessary.

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
6 Likes