Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88808 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91637 invoked from network); 15 Oct 2015 07:49:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Oct 2015 07:49:28 -0000 Authentication-Results: pb1.pair.com header.from=stalinbulldog@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stalinbulldog@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.181 as permitted sender) X-PHP-List-Original-Sender: stalinbulldog@gmail.com X-Host-Fingerprint: 209.85.213.181 mail-ig0-f181.google.com Received: from [209.85.213.181] ([209.85.213.181:34172] helo=mail-ig0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DA/70-23021-68A5F165 for ; Thu, 15 Oct 2015 03:49:27 -0400 Received: by igbni9 with SMTP id ni9so8677758igb.1 for ; Thu, 15 Oct 2015 00:49:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=afmDrDqUw0qAwDpkArJYCQjZvyL2TNOLgZ5h80q7sU0=; b=fWtgPLz8opQZ8aSvq9U1YqsC/6rbOKvXdZLpcvBwzjj3raFvEb6YJlim7KiVAXrABj YBssQRY6PNUgEftllDI4ZtbqDbXEXCYZ9CbElgSUY6qpu+BGOnVWebxknpH+x8vvIw6o suz/wTso8LImtEEWdw0T2D60UNYiJX57eJmKy5j1qoG6jXbDUlnqxpcfRQhxUjOJpiua hfPDI8ZytAtzPwZs8Iqu/HGSQr6a8oSc2SmH7KD5XtN8WvVQ1P8a1AA5fJgp3whOodiv QAje0KILbvosOlxFCTxZb004LriD1kEBP9FRastqbQFM7xWA2XppDMRhRXErNUqPsTzb N7xg== X-Received: by 10.50.83.6 with SMTP id m6mr31261904igy.90.1444895363495; Thu, 15 Oct 2015 00:49:23 -0700 (PDT) MIME-Version: 1.0 Sender: stalinbulldog@gmail.com Received: by 10.107.183.151 with HTTP; Thu, 15 Oct 2015 00:49:04 -0700 (PDT) In-Reply-To: <561F4EEB.8070605@telia.com> References: <561F4EEB.8070605@telia.com> Date: Thu, 15 Oct 2015 00:49:04 -0700 X-Google-Sender-Auth: 9aQit3m2Fz9jC3SGEQrjw8V3_Sg Message-ID: To: =?UTF-8?Q?Bj=C3=B6rn_Larsson?= Cc: Sammy Kaye Powers , PHP Internals Content-Type: multipart/alternative; boundary=089e013c6d9ae0fd5d05221feaa7 Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Revisit trailing commas in function arguments From: alexander@munkelwitz.com (Alex Munkelwitz) --089e013c6d9ae0fd5d05221feaa7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Just my own opinion, but I support this idea. For most functions it may be out of place, but when dealing with variadic functions it can add consistency to code. In addition it can make for cleaner diffs when overriding or switching back to default arguments. It is nice to not need to adjust other lines of code when removing one. Those are pretty minor gains, but I think they outweigh the minor code cruft that this could introduce. I appreciate that php allows trailing commas in arrays and I don't think there's a compelling reason to avoid making functions consistent with that behavior. -alex On Wed, Oct 14, 2015 at 11:59 PM, Bj=C3=B6rn Larsson wrote: > Den 2015-10-14 kl. 21:25, skrev 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 >> >> Given the reason against this RFC in the thread it would be interesting > to know why HHVM decided to implement it? > > Regards //Bj=C3=B6rn > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --089e013c6d9ae0fd5d05221feaa7--