Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88845 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87512 invoked from network); 16 Oct 2015 00:12:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Oct 2015 00:12:29 -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.215.48 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.215.48 mail-lf0-f48.google.com Received: from [209.85.215.48] ([209.85.215.48:34155] helo=mail-lf0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/D0-15862-CE040265 for ; Thu, 15 Oct 2015 20:12:29 -0400 Received: by lfaz124 with SMTP id z124so56370782lfa.1 for ; Thu, 15 Oct 2015 17:12:26 -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; bh=bjxsO+Rfq1i61KQ5XO5zvYimKFmDYLFk7RKyGiE/vA4=; b=LmUfsp2NvSEAeGpnAgc30OPuWLh+gn3eo21duz9+lkdhaqqE4cVdUn9SehLBfzkn6s z2OnpxTidLfih/a8Rz61bH8N1phgL/aqoLxyKqFv85thn4+Scmkrip72QhiLHEX4+7mf MRDqv/ak+8qOSAjmHbbvwDGBLTxdKL34+jqjhSDWCLMh/v02YBVNnRnCFa75wbM107ZO T2XtqWxPqBmQ6nZIL6fQU8Ce1p8cbDKaCZ6MxS0kiUu4kxrZ38+00dLyQ4cE6IWUQU/v XsIOavcdwijEvN17A8aujM/L3N38KThTjuDADYphUHaFYnHFk8zt/2C9yTAn7xVGsMN2 FCqQ== 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; bh=bjxsO+Rfq1i61KQ5XO5zvYimKFmDYLFk7RKyGiE/vA4=; b=lC/aRAVXl1XL9J5+b9LlRtzcQ0PZuJV9ro0E5gNfxd8uvuH+SpR3F5PAXOpNrxSkNd XzcPTzo4BVujQ8zcgLDnYbpj6nxMKf1IE8Fs/xuZaAB9ZUkiOGeC7dbfrloXOcNigsY8 YJP3GI9O4EQbN4DqHkfXXcXnyTLMt6caOHry4lRIX8MgKSHrcjuzHo77mIuAjX2I1osC heFm7FKGzZ96Pjf8tchK4tYeRz+JCGtcg1Ah2l1Mt75VgGfJmHkiGq+WTaim0mR3KcQW Cx2Sf5t2t5KRrglK3rR9hYCNPz8/NUdC2WvK4tg7JY4Egr2xSFleZeTM1sxIMOezsp78 GiNw== X-Gm-Message-State: ALoCoQl9JWqML33Oez/zyywst4oy60dEVCSO+7m7228+6GKn2ITU0D3NXDSPn0sJpsUsT0FfZPP5 MIME-Version: 1.0 X-Received: by 10.25.148.196 with SMTP id w187mr4242681lfd.77.1444954346150; Thu, 15 Oct 2015 17:12:26 -0700 (PDT) Sender: php@golemon.com Received: by 10.112.40.133 with HTTP; Thu, 15 Oct 2015 17:12:25 -0700 (PDT) X-Originating-IP: [2620:10d:c090:200::5:cb2e] In-Reply-To: References: <561F4EEB.8070605@telia.com> Date: Thu, 15 Oct 2015 17:12:25 -0700 X-Google-Sender-Auth: CUl_CDjrQzTromD_eAWPJv0rlyE Message-ID: To: Nikita Popov Cc: Ryan Pallas , =?UTF-8?Q?Bj=C3=B6rn_Larsson?= , Sammy Kaye Powers , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Revisit trailing commas in function arguments From: pollita@php.net (Sara Golemon) On Thu, Oct 15, 2015 at 1:08 PM, Nikita Popov wrote: >> I would say that it should be modified to disallow a trailing comma >> following either a variadic declaration or a splat invocation, since >> the grammar around these two things prohibits followups anyway. > > > We allow multiple splats in one call. Something like this (after trailing > comma patch) should be just fine: > > foo( > ...$args, > ...$moreArgs, > ...$evenMoreArgs, > ); > > We don't allow multiple variadic parameters. However I also see little point > in explicitly forbidding this one case. You'd be able to use the trailing > comma in all cases ... apart from that one single instance. > Derp, right. Sorry. I don't really know PHP. Is it like Ruby? -Sara