Trailing commas in all expression lists

+1 for allowing trailing commas

My two cents:

print(
    "red"
  , "green"
  , "blue"
)

… does not solve the problem, it just moves it to the first line.

That said: If trailing commas are okay, shouldn't leading commas be okay, too?

What about double commas:

print(
    "red",
  // "green"
  , "blue"
)

So, actually, I’m +1 for dangling commas.

1 Like