Re: [RFC][DISCUSSION] Trailing commas in all list syntax
| From: | Benoit Schildknecht | Date: | Sat, 07 Nov 2015 23:44:52 +0000 |
| Subject: | Re: [RFC][DISCUSSION] Trailing commas in all list syntax | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-89097@lists.php.net to get a copy of this message | ||
Hi,
Le Tue, 03 Nov 2015 20:22:12 +0100, Sammy Kaye Powers <me@sammyk.me> a écrit:
Hey internals! The RFC to allow trailing commas to function calls & declarations has been withdrawn in favor of the a RFC that broadens the scope to all list syntax. https://wiki.php.net/rfc/list-syntax-trailing-commas The RFC to allow trailing commas for all lists is now open for discussion. :) Thanks, Sammy Kaye Powers sammyk.meI 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$ :) Regards,