Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66032 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55403 invoked from network); 20 Feb 2013 08:47:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2013 08:47:56 -0000 Authentication-Results: pb1.pair.com header.from=florinpatan@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=florinpatan@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.178 as permitted sender) X-PHP-List-Original-Sender: florinpatan@gmail.com X-Host-Fingerprint: 209.85.214.178 mail-ob0-f178.google.com Received: from [209.85.214.178] ([209.85.214.178:37977] helo=mail-ob0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/86-19387-ABD84215 for ; Wed, 20 Feb 2013 03:47:55 -0500 Received: by mail-ob0-f178.google.com with SMTP id wd20so7338935obb.23 for ; Wed, 20 Feb 2013 00:47:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=IpjRMgFm49vWsFnpzBDjkzvjTm1rjlrEHzz83YrCxpw=; b=Oohj4/iPb0znYRr6xhkUV03iXq+1FXLHmQgvYzRueSh3dGp1NQZ6QGwhTpURNYj04R UmU7b0VoZ8Fz7XiS1tAeU8hj8Iw4z4mU3PSRnx3b1Dtca3ROYPiaWdSMLSN34hSr5zLT 98/4QGiQDuFYKk3CWwFKShB5sff+wLudYisLwVIgGSrSCGcF9s6OqhFgy0mJm7NvYecP wVU70SgfZjxzSVwtHxCbYqcZx3s5hNXUObxh1iWXUSsdbYc9INRGeeYNVhn1iQd8wuR1 3HjXE83966HsD4SVOq7mhe5hnTHXcqJTBU09Jcqj0CaCYS9YReeU7vo9vGxp53Jv5y+F bijQ== X-Received: by 10.182.108.104 with SMTP id hj8mr2050336obb.44.1361350072081; Wed, 20 Feb 2013 00:47:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.169.3 with HTTP; Wed, 20 Feb 2013 00:47:22 -0800 (PST) In-Reply-To: References: Date: Wed, 20 Feb 2013 10:47:22 +0200 Message-ID: To: Sara Golemon Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Allow trailing comma in function call argument lists From: florinpatan@gmail.com (Florin Razvan Patan) Hello, On Tue, Feb 19, 2013 at 2: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 > As a person who deals with code reviews from many programmers each day, I'd have to say this would be confusing. I do agree that it helps consistency but by far it implies many things that are really not what they seem. For example, I would expect that if I have: function A($b, $c = 'd') {} when I see A($b, ) to have no syntax errors but rather $c defaulted to the value in the function signature, which is not implied nor assumed by the RFC but it would be by the one reading a function. Then when I have function A($b, $c = 'd', $e) {} to be able to have A($b, , $e) which again this RFC doesn't specify that it allows but leads to confusion. As for the argument about the VCS, I really don't see an issue with the current way of thing. Some people don't use the comma at the end of the arrays and it doesn't mean that they all should. So from my point of view, this adds more ambiguity to the language and the problem it solves is very small. Best regards, Florin ---- Florin Patan https://github.com/dlsniper