Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100966 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53823 invoked from network); 27 Oct 2017 13:46:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Oct 2017 13:46:51 -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.220.172 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.220.172 mail-qk0-f172.google.com Received: from [209.85.220.172] ([209.85.220.172:51256] helo=mail-qk0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2C/5E-28573-AC833F95 for ; Fri, 27 Oct 2017 09:46:51 -0400 Received: by mail-qk0-f172.google.com with SMTP id 17so8372603qkq.8 for ; Fri, 27 Oct 2017 06:46:50 -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:from:date:message-id :subject:to:cc; bh=nPQU/PLDBg9GpfjsDqdM0ZRw/MM2I2cnnM6pTuf6oyo=; b=Q2TbjHqgNU/56KM9NkGqyE6NiITvV27pgcDHtALoBWP1eniowq2bpoBY9eDOM1Gg7L OMuToRf9D54lPBd+OAWPBtZGIc7CWCp9j7l7UJNeE3caPBVwwx6/2rOvEGiVzRu4zBx/ q7T6XOjUN3kYyshJAeZ4s1+fs1C+WTFHrFf2dbXTgyKdytjRMCILCp0Bjsp4UMQVAguu rOIM+Dai1ngfizparXLJva1UkXXoTR7fa6DvbcNsHDFv2Tbm9tMxFAB/usFFNNykru9o y1lv1RpOlzXmNJmU903A85/azkIPDN8OI2Y3LbtWUHKn1We0/Y8dfOywnFFnKHGuigV1 0fHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=nPQU/PLDBg9GpfjsDqdM0ZRw/MM2I2cnnM6pTuf6oyo=; b=YwmyjDJbDoffKl11zycCpjZJJvSkZ7zzc+8ROt/tFfpuyMQ5YDNQIX0HnGKOES6tIK MezzKhzywJy4KEF0bDm5payw09Omvczg+fYUFOiKRfTlIfFeoGGjPKwcM1z9P2vBG6F0 ht3Yq5qNXozCdvjMlsEV0IABntPpR2Q5nb3gsuxcCFCKdbI3UOFryuwTQ5VbUVPDyrXf KDomYe2HH8Nc8+4Ja50c8/Q//N+99Jg4L8hm5vjGyRM1Utr1ouan2ho951e9Jgsti3dP 504yH52ZIEq8ATLLQjIcwDnrviOtobGsoltPr2Z5IT7bX6kAWZlI0CjuGIbw7aC40xEa O9Sw== X-Gm-Message-State: AMCzsaVcWrQB7fpG3ZFFM9g5PsDN7ey4nvpo/IGJwHzapkgwKZvd1Al+ c5qWSkjeLNX8pC0T0KZQ3av3yeWUtAEMpq2ZXykivw== X-Google-Smtp-Source: ABhQp+RADWpaLXDeKq7l9XcNA6e9HE0SdT9G7IKnVG48+lZklxpU6H0T0AyytuMZh4zHl6o+mTLhSF+/Bn1LFK0WC8s= X-Received: by 10.55.71.72 with SMTP id u69mr808990qka.289.1509112008022; Fri, 27 Oct 2017 06:46:48 -0700 (PDT) MIME-Version: 1.0 Sender: php@golemon.com Received: by 10.12.156.1 with HTTP; Fri, 27 Oct 2017 06:46:47 -0700 (PDT) X-Originating-IP: [71.251.16.204] In-Reply-To: References: Date: Fri, 27 Oct 2017 09:46:47 -0400 X-Google-Sender-Auth: j0Yeii2UrnP042dUaz57x2LOFb0 Message-ID: To: Peter Cowburn Cc: Sammy Kaye Powers , PHP Internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [RFC] [Discussion] Allow a trailing comma in function calls From: pollita@php.net (Sara Golemon) On Fri, Oct 27, 2017 at 7:17 AM, Peter Cowburn wrote: > On 24 October 2017 at 17:14, Sara Golemon wrote: >> I'd guess because those are the only constructs which appear >> function-like *and* exhibit variadic behavior. >> >> empty/die/exit/print/require/include/require_once/include_once/__HALT_COMPILER >> don't have a variadic mode so allowing trailing commas in them would >> be pointless. > > That's a fair point, then maybe we should consider declare() too? > Perhaps, but since we've already entered voting, it'll have to be a separate RFC at this point. That, or we reset and I don't think it's worthwhile for declare because it's only got three possible values, all of which can easily fit a single line. > Also, I > know that "echo" is a "doesn't even look like a function" but can that be > considered as if we're changing any language constructs at all in this RFC, > then that might benefit too. Note, I'm just saying "consider" on purpose, > rather than suggesting any change to the RFC actually be made. > At a shot-from-the-hip guess, I'd assume that would introduce parser ambiguity because of the lack of delimiting parenthesis. -Sara