Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66060 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14066 invoked from network); 20 Feb 2013 13:43:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2013 13:43:10 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.47 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.219.47 mail-oa0-f47.google.com Received: from [209.85.219.47] ([209.85.219.47:42477] helo=mail-oa0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/91-19387-EE2D4215 for ; Wed, 20 Feb 2013 08:43:10 -0500 Received: by mail-oa0-f47.google.com with SMTP id o17so7987419oag.6 for ; Wed, 20 Feb 2013 05:43:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Pc9WmQJ3QXcJotQAO1LAjdYRMNlN4UK9O2MhxssT87w=; b=RrdfqvQDSe1SNoakX+lpw5k9tadlFQnPAn1M3TV+a9Y3XEqrinTHUzS37709ca/G9C Yooc3HxgqaNLhdvXl+Tv1kJegEHnIme0C2YrDOmldnf9Rl40796uE6KcUG2JRP6iXj2X 9aY0sh+VLWRucfxmeqpfe+6+bRvnRwB8wWyvt2uOqsGX/z1x2OWSKiFA9NbhHOOZRRK2 hpKcTJv7H0fUYMIoFVc5B1oDFN8jXvzC/u/bevmKi/2eWVSHbk1QMF2CIF1edNZymitj 8ovYzsyVjqMCj1Iu+/b+sYyIPctRtEGExoGBC5sMpXn6XhD6vCcBnPy8gvbu2nmkxHtP y0LQ== MIME-Version: 1.0 X-Received: by 10.182.127.7 with SMTP id nc7mr4992980obb.94.1361367786972; Wed, 20 Feb 2013 05:43:06 -0800 (PST) Received: by 10.182.49.136 with HTTP; Wed, 20 Feb 2013 05:43:06 -0800 (PST) In-Reply-To: References: Date: Wed, 20 Feb 2013 14:43:06 +0100 Message-ID: To: Sara Golemon Cc: PHP internals Content-Type: multipart/alternative; boundary=14dae93b57405a3bb504d62823d5 Subject: Re: [PHP-DEV] [RFC] Allow trailing comma in function call argument lists From: nikita.ppv@gmail.com (Nikita Popov) --14dae93b57405a3bb504d62823d5 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Feb 19, 2013 at 1:06 PM, Sara Golemon wrote: > Opening RFC to allow trailing comma in function call argument lists > > https://wiki.php.net/rfc/trailing-comma-function-args > Imho this change isn't necessary (though I'm also not strongly against). I don't really buy the VCS argument, as the usage of function argument lists and arrays are quite different. Functions have a fixed parameter specification, so you don't really "just add another argument" (exception: variadics). Arrays are quite different in that regard. Also in my personal experience people quite rarely use the one-argument-per-line notation for functions. If the line gets to long people split the arguments to an extra line, but usually it's not necessary to wrap things across so many lines that these concerns become relevant. (I mean, this is PHP and not the Win32API with 12-required-arguments functions...) I could see a minor benefit for code generation, though there too the difference isn't really large (especially if you can use implode). Nikita --14dae93b57405a3bb504d62823d5--