Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88827 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45530 invoked from network); 15 Oct 2015 17:14:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Oct 2015 17:14:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.217.179 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.217.179 mail-lb0-f179.google.com Received: from [209.85.217.179] ([209.85.217.179:33408] helo=mail-lb0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/69-23021-EDEDF165 for ; Thu, 15 Oct 2015 13:14:07 -0400 Received: by lbbpp2 with SMTP id pp2so48521916lbb.0 for ; Thu, 15 Oct 2015 10:14:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golemon_com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=TmowNLmII3BGxo9TmXCffdPg5mf5ciIGx6VZnvMtfB4=; b=S4DytXuiAAuB/FuXzHG/S6ndVo0DAb98XkyB1izGU/Nw6Wq1LsFNcj+QnRX8w2X3mS 0SKMklmDa/7NJ3BHLSt0nMkFJOUfonNEHHabj3MBzWnAuntggNvEE5ig/SS4cuH6cMPL TTMbx7CBx0UZglky/mXnuRJI8NOJ9EuxRCcOrP+91/OSjrUZKxF0UqrgWtNzFub6Xcxe frnfKkLdOUxMqK+LB3q9DJ66pz6imzlTXP9CZfvGZw0CLj9CK7xbNitmjPqhOOL+FPvX MxP/rLMwUS41nNYyvtE5MTiy6qtQBBRbffHLGFhB15TE7EnVSJ/NhfKjQOdLDs1UjZh3 Z0ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=TmowNLmII3BGxo9TmXCffdPg5mf5ciIGx6VZnvMtfB4=; b=mw1QHU39GH+9W76tNIQUbc8tfKmuplB2qNjc+HuwLoYKQiieGnkuUv+yYPjynyktJ0 eBo9tc7mR4NZyeiH/z/XS+PxNoGV0AiCwMC/68pqhmKnZxp2E0U+nACfAzMMik35i2Rg AAI70eLnZZEGvIVWis/VEyiuW3BbeLRb24cKDQO3G38eTrp1aa3om2iUtnXVnrCaVnuz xkWRA46ogDQsY75IJl2YHJbfENVgqzu1xW6hab6a32/BePTiM7cYImJHH+MSF0RowueG 22oU8PUzJp7b+reQt2OJ98pewiVB+2P1AZMlKq4PBFqc5EC0lcay2S1p0TGZ1ilo0i5g cRHQ== X-Gm-Message-State: ALoCoQnWRhkqmPM3eUUL0MWr0IPH+0CPrjVuQmHDkM0C3mb3YnZFKktOig+Z+xQ/Gm4JiQUYSPdz MIME-Version: 1.0 X-Received: by 10.112.168.194 with SMTP id zy2mr5402467lbb.79.1444929243671; Thu, 15 Oct 2015 10:14:03 -0700 (PDT) Sender: php@golemon.com Received: by 10.112.40.133 with HTTP; Thu, 15 Oct 2015 10:14:03 -0700 (PDT) X-Originating-IP: [2620:10d:c090:200::3:9291] In-Reply-To: <561F4EEB.8070605@telia.com> References: <561F4EEB.8070605@telia.com> Date: Thu, 15 Oct 2015 10:14:03 -0700 X-Google-Sender-Auth: wTRLvsavOOqXTjJA7JW-BU8lu30 Message-ID: To: =?UTF-8?Q?Bj=C3=B6rn_Larsson?= Cc: Sammy Kaye Powers , PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Revisit trailing commas in function arguments From: pollita@php.net (Sara Golemon) On Wed, Oct 14, 2015 at 11:59 PM, Bj=C3=B6rn 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