Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98097 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44919 invoked from network); 31 Jan 2017 21:53:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jan 2017 21:53:05 -0000 Authentication-Results: pb1.pair.com header.from=cschneid@cschneid.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=cschneid@cschneid.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cschneid.com from 195.226.6.51 cause and error) X-PHP-List-Original-Sender: cschneid@cschneid.com X-Host-Fingerprint: 195.226.6.51 darkcity.gna.ch Received: from [195.226.6.51] ([195.226.6.51:36532] helo=mail.gna.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/2D-51557-F3701985 for ; Tue, 31 Jan 2017 16:53:04 -0500 Received: from [10.0.1.55] (77-56-53-227.dclient.hispeed.ch [77.56.53.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id 6D16EDC0CC2; Tue, 31 Jan 2017 22:52:58 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) In-Reply-To: Date: Tue, 31 Jan 2017 22:52:57 +0100 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <50DB9321-C64E-4D8B-B416-86FCCE4FFCE5@cschneid.com> References: To: Yasuo Ohgaki X-Mailer: Apple Mail (2.3259) Subject: Re: [PHP-DEV] [RFC][VOTE] Trailing commas in all list syntax From: cschneid@cschneid.com (Christian Schneider) Am 30.01.2017 um 04:17 schrieb Yasuo Ohgaki : > Unless there is critical reason not to implement it that I don't know = of, I > prefer to allow trailing commas like array universally/consistently. I agree that consistency would be preferable here. Syntax subtleties = where sometimes you can have trailing commas and sometimes you can't are = more confusing than helpful IMHO. One point where I'm most missing it is function calls because we use = some very powerful variadic functions in our core library which can lead = to long parameter lists (without being bad design) and therefore profit = the most from not having a special case on the last line. And I really don't expect a proliferation of uglier code by allowing = trailing commas while there are cases where it is very useful. Regards, - Chris