Le Tue, 03 Nov 2015 20:22:12 +0100, Sammy Kaye Powers <email@example.com
The RFC to allow trailing commas to function calls & declarations has
withdrawn in favor of the a RFC that broadens the scope to all list
The RFC to allow trailing commas for all lists is now open for
Sammy Kaye Powers
I think it's a terrible idea :
- Another code style, another way to write code.
- It's not clean at all.
- Error source : when you put a comma, that's because you want to add
something. How would you know if something hasn't been deleted by another
person, if you forgot something, or if it is intended ?
- Some languages don't allow this. If I take the habit of putting trailing
commas because that's an obligation from the company I'm working for, I'm
likely to make mistakes in another languages, and so, be less productive,
make more buggy code. Making my brain busy with "this is language X,
remember, trailing commas aren't allowed in this one.".
I'd prefer to remove existing trailing commas support from the language,
for PHP 8 (because of the BC), for language consistency.
My 0.02$ :)