Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89097 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88261 invoked from network); 7 Nov 2015 23:45:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Nov 2015 23:45:29 -0000 X-Host-Fingerprint: 86.218.90.100 AAubervilliers-652-1-195-100.w86-218.abo.wanadoo.fr Received: from [86.218.90.100] ([86.218.90.100:5089] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/E5-06223-71D8E365 for ; Sat, 07 Nov 2015 18:45:27 -0500 To: internals@lists.php.net Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes References: Date: Sun, 08 Nov 2015 00:44:52 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Message-ID: User-Agent: Opera Mail/1.0 (Win32) X-Posted-By: 86.218.90.100 Subject: Re: [RFC][DISCUSSION] Trailing commas in all list syntax From: bensor987@neuf.fr ("Benoit Schildknecht") Hi, Le Tue, 03 Nov 2015 20:22:12 +0100, Sammy Kaye Powers a = =C3=A9crit: > 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 anothe= r = person, if you forgot something, or if it is intended ? - Some languages don't allow this. If I take the habit of putting traili= ng = 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,