Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88828 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52095 invoked from network); 15 Oct 2015 19:10:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Oct 2015 19:10:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=bjorn.x.larsson@telia.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=bjorn.x.larsson@telia.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain telia.com from 81.236.60.155 cause and error) X-PHP-List-Original-Sender: bjorn.x.larsson@telia.com X-Host-Fingerprint: 81.236.60.155 v-smtpout2.han.skanova.net Received: from [81.236.60.155] ([81.236.60.155:48858] helo=v-smtpout2.han.skanova.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 62/E9-23021-71AFF165 for ; Thu, 15 Oct 2015 15:10:17 -0400 Received: from [192.168.7.4] ([195.198.188.252]) by cmsmtp with SMTP id mnumZN3DKaiRLmnumZdA6L; Thu, 15 Oct 2015 21:10:12 +0200 To: Sara Golemon , Sammy Kaye Powers References: <561F4EEB.8070605@telia.com> Cc: PHP Internals Message-ID: <561FFA14.7040904@telia.com> Date: Thu, 15 Oct 2015 21:10:12 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfC2ZR4vdJKpIoHzywk0X8LvCU9MKh2pZYNZuRAXyGsu7nYLCPv/bUtBiPnOhEXLW9j91G5qKIrRaunEWWPViBopuB4YeKZAm7zmjWTXrz//y+Nrgxnz0F7/TArlaTCHo1JV0aapJFZgcrYK7Fho3ZtPzFy3KsZ1vaGGyZ6E3LrwBZbVCkdwFZ2QSuvjm5rjX8P6fFH3Fd/TOhbiWYm8qhrGipK652y39ZrKZhP2jnc4g Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Revisit trailing commas in function arguments From: bjorn.x.larsson@telia.com (=?UTF-8?Q?Bj=c3=b6rn_Larsson?=) Den 2015-10-15 kl. 19:14, skrev Sara Golemon: > On Wed, Oct 14, 2015 at 11:59 PM, Björn Larsson > wrote: >> Given the reason against this RFC in the thread it would be interesting >> to know why HHVM decided to implement it? >> > Happy to answer, but I need to state a couple things first: > * I don't really care if this change lands. I'd kinda like it, but > it's not solving a massive problem for me. > * There aren't any compelling reasons against this. The only reason > given of any note that I've seen is: "There are no compelling reasons > in favor of it." And I'll agree with that. Like I just said, it's > not solving any major problems, and it's not going to cause any major > problems. It's just a tiny, vanishingly insignificant piece of > syntactic sugar which disappears before we even get to the AST. > > So again, could scarcely care less, so don't expect me to champion > either side, but you asked "why", so here it is: It makes code reviews > marginally less ugly. > > That's it. It's a tiny problem to solve, and likely saves less than > 100ms during diff reviews, but it's a solution to a problem. > > Yes, it's a problem which countless developers live with to no > significant negative consequence. Solo developers and small shops > won't care about this since they tend to not bother with code reviews. > FB has enough engineers working on its very large codebase though, > that nobody has it all paged in, so code reviews are mandatory, and if > we can spend five minutes of effort to loosen the parser rules in > exchange for saving 1/10th of a second on every diff review that > extends/shrinks a function call/signature with no overhead, then of > course we would. That's a fair exchange. > > Apologies if you were hoping for a compelling reason. > > -Sara > No, I think this is a good answer and part of the motivation you state could in my eyes land in the RFC. I mean there are big organizations using PHP ;-) The feature itself is free to use and misusing it shouldn't be a reason against it. //Björn