Hi,

Le Tue, 03 Nov 2015 20:22:12 +0100, Sammy Kaye Powers <m...@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.me

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$ :)

Regards,

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to