Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66056 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98066 invoked from network); 20 Feb 2013 11:45:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2013 11:45:30 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.223.173 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.223.173 mail-ie0-f173.google.com Received: from [209.85.223.173] ([209.85.223.173:45717] helo=mail-ie0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/2F-19387-957B4215 for ; Wed, 20 Feb 2013 06:45:30 -0500 Received: by mail-ie0-f173.google.com with SMTP id 9so9789137iec.18 for ; Wed, 20 Feb 2013 03:45:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:x-originating-ip:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:x-gm-message-state; bh=5I4+Pvy+D5aM+5RKIktEKKutGa/WlSwXUN2r1VBXKR8=; b=Crrtk9WP9GPJcIPOiY31OKbJjSu5jBMgNPcjcCDO/9vJJ804AgHmEJr9gRDLFhFI9c pSxOTZoyLpkG0vaViw7sEwcRTBhvaylCgULtSWlVN9bKMKACCpFXo2mrp/6THB88mLNU OHaG5xm40TiL3HEGZgbEutrFp1skMmZhOxw7IdESSaPZrZxE/xXFOJ+vNuRq55UZND0O F8xB8RgIm4YP8QP5oMf69WdwT/6z20lsthinjJdJmku5qI9Atg/jRHLQrO+5LklLRt1l CDCxs4jZjXzJDU8MP5H7LAQn9dQcUiILKgltCjO4+UWxpl6FZFrLIkSjK4BUzUzNpxrW PXSQ== MIME-Version: 1.0 X-Received: by 10.50.190.233 with SMTP id gt9mr10189838igc.80.1361360727537; Wed, 20 Feb 2013 03:45:27 -0800 (PST) Sender: php@golemon.com Received: by 10.64.139.100 with HTTP; Wed, 20 Feb 2013 03:45:27 -0800 (PST) X-Originating-IP: [2001:470:1f09:2fa:3026:5ca2:41f3:8512] In-Reply-To: References: Date: Wed, 20 Feb 2013 03:45:27 -0800 X-Google-Sender-Auth: KGF9ApKr8buaaVgV87qx7W5EHBg Message-ID: To: Martin Keckeis Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlcGQibwSvjVWN5rg5Uh9SIA+mkNVxAM6GAhb9td9A9ZbhbT7diQ8Tvuy9Un42umJr/a5bu Subject: Re: [PHP-DEV] [RFC] Allow trailing comma in function call argument lists From: pollita@php.net (Sara Golemon) On Wed, Feb 20, 2013 at 3:32 AM, Martin Keckeis wrote: > -1 > > For array it's okay, but for functions? I think the code is harder to read > that way... > > If I would see a call written this way: > phpinfo(,) > > There are three possible values: Defaultvalue, null or something differnt? > You wouldn't see that call, it would be a syntax error. You might see something like this however, which may illustrate the same point you were trying to make: phpinfo(INFO_ALL,); To me the meaning seems obvious, it's the same semantics as: $a = array('foo',); which nobody seems to have trouble with. I do appreciate that you disagree, however. > @Sara cool base idea ;-) (https://github.com/sgolemon/objectifier) > Turns out niki did it first, and his approach was a lot better, actually: https://github.com/nikic/scalar_objects