Are there any plans to support trailing commas?
# language-proposals
m
Are there any plans to support trailing commas?
4
@karolkowalski
k
That’s the grate question @mg6maciej. I was trying to find any info about it recently
e
what's that exactly?
m
Copy code
myFunctionWithALotOfParams(
    param1 = 0,
    param2 = "string",
    param3 = returnedFromFunction(),
    param4 = 7,
)
Note
,
after
7
.
That's it exactly.
e
what would that be useful for?
a
it becomes trivial to reorder the lines + you get nicer git diffs
1
m
Exactly this.
e
Ok