Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100340 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9523 invoked from network); 1 Sep 2017 12:16:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2017 12:16:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=albertcasademont@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=albertcasademont@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.179 as permitted sender) X-PHP-List-Original-Sender: albertcasademont@gmail.com X-Host-Fingerprint: 209.85.216.179 mail-qt0-f179.google.com Received: from [209.85.216.179] ([209.85.216.179:36748] helo=mail-qt0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 61/29-04538-2BF49A95 for ; Fri, 01 Sep 2017 08:16:50 -0400 Received: by mail-qt0-f179.google.com with SMTP id v20so187880qtg.3 for ; Fri, 01 Sep 2017 05:16:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=L1mcpVZx8KwCGnI46lSl221AJRAoUsWMx7Rloorhax8=; b=Z+dJMMTS//CoQpk/ERWHVIbuVvDAO7XT1mHruPJmI3RN/aEopT4+XtARCs4qgKFvXR JQhBiB4TjRQGiNiYmWIMV0DPaU+xq/FG5O5MTrahUts0RwiITqETTef3iINJUQHxG5oJ dLQ1Qr59UCIFQPT8UXMbmK+x8w25KseuukV8tYLAP4u1I2gojKYzQ+e3z5iVLgtFyuSN dtVmTQ31cDAFa1QH78WT2u+UoYvPhFqvpfONdHIlUkXp6o5F1W/C7vFf34HWvz/Hlma0 p9XUoj5+yA9fdjB9rk8oKR2qMnlKSzXkwl8vEplIcoJXCuEt9hFSpv8fE7UjDSwih8ee 1oVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=L1mcpVZx8KwCGnI46lSl221AJRAoUsWMx7Rloorhax8=; b=kuQab9uERS8h6CVeDLqDzcSrUfEOLMkhsPv/o1hyWYtBXktGPccDzPzTB3cyst3pUw WsykN2PEQtrMdZPHnm4hgWZyx3ZQEh39ljBMilX53UV3ntnzeBqL1gk1Hh/FIDoLHirg 40K+nXSSWTGV4aVU0y7hrZCfKycaMuxBAPpU1saz0Pq+sUHuMM0noIiODLTtEKaoHxAt ADEodnc7/NWmwLUTQ/6q9AGo9Am8x8ZRUx5JAOQt5t5s6gZnL+4g+RhqCY2zwrWz6epC pB84HJuVHx32YYGxlcrcNjw1BugX/dRVN7vrC3AHcxIdXGLRPxGSSjQ9I/jJlpLinV/F 2yrA== X-Gm-Message-State: AHPjjUjd2+ZdT3fB8zWumdtVkDf11NWI949VqsdBFhEj14tIHKLhZRDT llvKR39kYSgr3NeVZ0lnfvKx84di+g== X-Google-Smtp-Source: ADKCNb6MaGbcPgRktYatGwByoOXwbiu1wJnz3Z28o97oMevJ2OA8sw+qBRTPxldml98mKjj4ZkuEr4xyLl5OgE0Re14= X-Received: by 10.200.53.12 with SMTP id y12mr2477856qtb.198.1504268207373; Fri, 01 Sep 2017 05:16:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.82.145 with HTTP; Fri, 1 Sep 2017 05:16:26 -0700 (PDT) In-Reply-To: <562149A0.8050504@telia.com> References: <562149A0.8050504@telia.com> Date: Fri, 1 Sep 2017 14:16:26 +0200 Message-ID: To: =?UTF-8?Q?Bj=C3=B6rn_Larsson?= Cc: Sammy Kaye Powers , PHP Internals Content-Type: multipart/alternative; boundary="001a113e5d5625c63f05581fbcbd" Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Revisit trailing commas in function arguments From: albertcasademont@gmail.com (Albert Casademont) --001a113e5d5625c63f05581fbcbd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Revisiting this thread. AFAIK this RFC was never put to vote, right? On Fri, Oct 16, 2015 at 9:01 PM, Bj=C3=B6rn Larsson wrote: > Den 2015-10-16 kl. 15:09, skrev Sammy Kaye Powers: > >> On Thu, Oct 15, 2015 at 8:28 PM, Marcio Almada >> wrote: >> >> Hi, >>> >>> 2015-10-14 16:25 GMT-03:00 Sammy Kaye Powers : >>> >>>> Hello internals friends! >>>> >>>> I'd like to open a discussion on the RFC to allow trailing commas in >>>> function arguments. >>>> >>>> https://wiki.php.net/rfc/revisit-trailing-comma-function-args >>>> >>>> Discuss! :) >>>> >>>> Thanks, >>>> Sammy Kaye Powers >>>> sammyk.me >>>> >>> Sammy, I think this proposal is too narrow. If we are going to bother >>> to change the language, then let's do it consistently and allow >>> trailing commas on all lists in the grammar. These are the ones on >>> mind right now: >>> >>> - use declarations >>> - group use declarations >>> - function call argument list >>> - class member lists (both constants and properties) >>> - argument list declarations >>> - arrays (already allowed) >>> >>> As exemplified in this gist: >>> https://gist.github.com/marcioAlmada/75f8f1d47da5dcac2e57 >>> >>> Why? Because it prevents a reality where each PHP minor version >>> introduces trailing commas in a new different place, hurting code >>> portability. Because it couldn't get more consistent. And more >>> importantly: because we would get rid of this discussion about >>> trailing commas, forever j/k :) >>> >>> ty, >>> M=C3=A1rcio >>> >>> Hey M=C3=A1rcio! >> >> Thanks for the suggesting "trailing comma all the things" idea. I can >> certainly get behind that idea and I think it would offer an even strong= er >> argument than just trailing commas on function args. >> >> I'm curious what others think about broadening the scope of the RFC to >> include all the list grammars in PHP. >> >> Well, if there is a wish to broaden the scope maybe the voting > should be split on each case? Like the remove depr. func. RFC: > https://wiki.php.net/rfc/remove_deprecated_functionality_in_php7 > > r//Bj=C3=B6rn > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a113e5d5625c63f05581fbcbd--