Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86752 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16955 invoked from network); 18 Jun 2015 17:16:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jun 2015 17:16:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=ml@anderiasch.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ml@anderiasch.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain anderiasch.de designates 81.169.138.148 as permitted sender) X-PHP-List-Original-Sender: ml@anderiasch.de X-Host-Fingerprint: 81.169.138.148 ares.art-core.org Received: from [81.169.138.148] ([81.169.138.148:46598] helo=ares.art-core.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9B/59-46946-FECF2855 for ; Thu, 18 Jun 2015 13:16:32 -0400 Received: from [192.168.178.20] (p4FFB01A7.dip0.t-ipconnect.de [79.251.1.167]) by ares.art-core.org (mail.art-core.org) with ESMTPSA id 64A952EE163; Thu, 18 Jun 2015 19:16:28 +0200 (CEST) Message-ID: <5582FCE8.9070108@anderiasch.de> Date: Thu, 18 Jun 2015 19:16:24 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Yasuo Ohgaki , Christian Schneider CC: PHP Development References: <68262FAD-587B-47FF-B388-3B8551FDCA22@cschneid.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Revisit trailing commas in function call parameters? From: ml@anderiasch.de (Florian Anderiasch) On 18.06.2015 08:25, Yasuo Ohgaki wrote: >> If people still consider it more harm- than useful then please don't flame >> me and I'll shut up again :-) >> > > PHP allows > > array( > 1, > 2, > 3, > ); > > therefore > > my_variadic_function( > "foo", > "bar", > "qux", > ); > > is consistent behavior to me. If variadic functions allow this and normal functions don't (and by most PHP coding standards you'll format like this all the time because of 80 chars limit I don't see how this is in any way consistent. It's still a function call after all and not an array. ~Florian