Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88838 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68535 invoked from network); 15 Oct 2015 20:04:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Oct 2015 20:04:56 -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.171 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.217.171 mail-lb0-f171.google.com Received: from [209.85.217.171] ([209.85.217.171:33320] helo=mail-lb0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/6D-23021-6E600265 for ; Thu, 15 Oct 2015 16:04:55 -0400 Received: by lbbpp2 with SMTP id pp2so54576423lbb.0 for ; Thu, 15 Oct 2015 13:04:51 -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=FuT+6xQoN1GAroM0BW9yY9zxcOETopxjm5hdDcfW4aQ=; b=1WuyTeomy9AM8hZ9gt7joEacRWJ9Ur0haJC8bbnNW3FH1RNIz6FxgqpTrkbKhYxyJ3 YXeDHY7brts/DOpOMPhxbUMTOaaaOFCrGzvdwXHeBNzxYvedYfCbd7hbVXZo+4uQFd/A OukmE6i0UqyioCi68EcmfIfNUvmlCUnxP0PcFhw4hPdbq/xTpGsLQt5u55lKrfqIYHgZ DNICLJ8eR2ny1q9xug+bA1DRD6GE6GAH1zkt0yQXYBEQ/NdExFB8hlK66vNwpbZuKN/O Atl3KJ9UvMa4vFhP6CGPyYNsQr/7BxWDSlvSPlgh5qT0qlFtFmzBPo2ZeLMtM9WGnLsA O1rQ== 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=FuT+6xQoN1GAroM0BW9yY9zxcOETopxjm5hdDcfW4aQ=; b=XVTT9JnZ818wCji+8Lno7vvm4Ex7z+MIhXaktH8MqiKEMSRD9ekmcqmMdWyjzbzJBK jEkBMhQI/6JVSecV5ba9ekF0mbBToxcjTOcX/K4TJLGHKpbyCBwv2QLuhR1uzpvTms/P kr9Wen1BTba+3GklI9dVHdc0tubpN0GCStTm6CXAWvmsKuv1haG9yjW4MSg4gSsxt+ww aLRiwc4GmX2i4Nu1KH9oAZQDO1OCc7ZjFTo4Y/LNxwL4XxPCaXH4u9TCAMOXvoq+0uP5 PJ/4cPn+f6KF6UFk1jIXyjYgP9E2jmzF2/j3zylc8EL9sJ2HWaQQsreWFDLUZaKJjEuv EsWA== X-Gm-Message-State: ALoCoQnv0uTZ3tAsHNuZ36Ki+2daPSfXh6/xtEPW2nY4DvOCkt+SvWwjGCi4EHV7ZHdRzS1mZvHV MIME-Version: 1.0 X-Received: by 10.112.198.97 with SMTP id jb1mr5721783lbc.8.1444939491090; Thu, 15 Oct 2015 13:04:51 -0700 (PDT) Sender: php@golemon.com Received: by 10.112.40.133 with HTTP; Thu, 15 Oct 2015 13:04:51 -0700 (PDT) X-Originating-IP: [2620:10d:c090:200::5:cb2e] In-Reply-To: References: <561F4EEB.8070605@telia.com> Date: Thu, 15 Oct 2015 13:04:51 -0700 X-Google-Sender-Auth: rqkhekIF7OcG0RNkYT1Wxz5yx4A Message-ID: To: Ryan Pallas Cc: =?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 12:51 PM, Ryan Pallas wrote: > I do h ave one question I just thought of though... how does the allowance > of trailing comma work with the splat operator (...)? I'm assuming a > function call/definition may only have one or the other, is that correct? > Excellent question. The patch on Sammy's RFC was written in Feb 2013, before variadics, so it doesn't take them into account. 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. -Sara