Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88804 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63791 invoked from network); 15 Oct 2015 03:24:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Oct 2015 03:24:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=mailto.woden@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mailto.woden@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.176 as permitted sender) X-PHP-List-Original-Sender: mailto.woden@gmail.com X-Host-Fingerprint: 209.85.217.176 mail-lb0-f176.google.com Received: from [209.85.217.176] ([209.85.217.176:33765] helo=mail-lb0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/39-33697-D5C1F165 for ; Wed, 14 Oct 2015 23:24:14 -0400 Received: by lbbpp2 with SMTP id pp2so30509785lbb.0 for ; Wed, 14 Oct 2015 20:24:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=y5Deg9JWQTa3ASRS+5laKY4w11PK+Fezcd8eSliDIqE=; b=sY0Wx1H9kBxp76esdXUBQ07CQ5A/1DREHPf92o6dnF4bX2RzeYzGBc4+TiM/dCJVJS UgxqgK1qiffBoQz4/IaTh0mOW2OjOmn01XGuUNFBP1bJSQlrSCWTHqdrYT2mSunNTuiG qzIj7zu665fLEdDBwYsmfyipIUjn5ti0u7oFrk8qk9pOQ69HGAj0tMHkzB48cWeyzpD7 35J4g/pZxByu9YwAl97lnhZfRS4NTrxwN+6IGTQ3FULJPo2X44OdQocmI5XtsBmmVV+P bIhscrcyVy0DbyowCQdluJtxjMxnKBxtq8zlL/euLAGLnq0Q1B4ww3W3LeHSCfsyWSkU cAiw== X-Received: by 10.112.11.200 with SMTP id s8mr3267793lbb.44.1444879451151; Wed, 14 Oct 2015 20:24:11 -0700 (PDT) MIME-Version: 1.0 References: <3D.A7.33697.434EE165@pb1.pair.com> In-Reply-To: <3D.A7.33697.434EE165@pb1.pair.com> Date: Thu, 15 Oct 2015 03:24:01 +0000 Message-ID: To: Andrea Faulds , internals@lists.php.net Content-Type: multipart/alternative; boundary=001a11c3be586de4e805221c36e6 Subject: Re: [PHP-DEV] Re: [RFC][DISCUSSION] Revisit trailing commas in function arguments From: mailto.woden@gmail.com (Daniel Persson) --001a11c3be586de4e805221c36e6 Content-Type: text/plain; charset=UTF-8 I'll echo Andrea remarks, -1, sorry. On Thu, Oct 15, 2015, 01:25 Andrea Faulds wrote: > Hey Sammy, > > Sammy Kaye Powers wrote: > > I'd like to open a discussion on the RFC to allow trailing commas in > > function arguments. > > > > https://wiki.php.net/rfc/revisit-trailing-comma-function-args > > > > Discuss! :) > > Hmm. I'm not sure if this is a good idea. For arrays, trailing commas > make perfect sense: arrays are very often written over multiple lines, > where trailing commas look pretty, and it's likely new elements will be > added or old elements removed, justifying the trailing comma for cleaner > diffs and less pain when editing the source. > > But for functions? Most function calls are just a single line. Most > function declarations, too. And even when they are multi-line, you're > not going to be adding a new argument or parameter, respectively, very > often. Since these additions aren't very common, you'd need to use > trailing commas everywhere (yuck) to get any benefit, because you > probably can't predict which instances you're going to change soon. > > To me this looks like something that adds another big stylistic > difference to disagree on, and adds potential ugliness (`foo($bar,);`) > for very limited gain. > > So, my intial reaction would be a -1, sorry. > > Thanks. > -- > Andrea Faulds > http://ajf.me/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a11c3be586de4e805221c36e6--