Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60166 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16150 invoked from network); 18 Apr 2012 08:10:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Apr 2012 08:10:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: mike.php.net@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:55606] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/22-03614-3F67E8F4 for ; Wed, 18 Apr 2012 04:10:28 -0400 Received: by yenl5 with SMTP id l5so3967910yen.29 for ; Wed, 18 Apr 2012 01:10:25 -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:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=KM/e8kRXGG7+8PtNXgVOfNNTMMU9DSUvPsvlbVYGdNc=; b=wEI7ibPOLQHC2mXOd1PF8GhH0luwx+9wYTC7gPWIs8Ls8LNUgFWwdgkER+kFo11Cs9 MmpS7FYJya9/femk4WVomYZT5iB2n7uplONr9TsNcNaDRPO+DsoPXqwrmjJgrNyeAMGm uAQSwoS4MWEuMazE0gQsEv9TqNCaLZfh5ls3etEGYpfY1ySViEhQfo7P8kX3hYhR+2bZ Y7cv9ASxi83hk01Z/y0ljFuatUDfzN6HyEb7qpznM4R9OP/MO/s+7//X21P35Ugiu8zA BXIKGIDdH52i/QX3IWhV2EVSD2mR97Oo0z11dY84CXi7nhn0+76LLxzeH/laQPFkwTka OkxQ== MIME-Version: 1.0 Received: by 10.236.174.35 with SMTP id w23mr1179576yhl.35.1334736624984; Wed, 18 Apr 2012 01:10:24 -0700 (PDT) Sender: mike.php.net@gmail.com Received: by 10.101.94.20 with HTTP; Wed, 18 Apr 2012 01:10:24 -0700 (PDT) In-Reply-To: <4F8DFB65.4020506@seld.be> References: <4F8DF4B1.2040307@sugarcrm.com> <4F8DFB65.4020506@seld.be> Date: Wed, 18 Apr 2012 10:10:24 +0200 X-Google-Sender-Auth: _cX8noVixYW7CEMLFJ8-4RTu3HY Message-ID: To: Jordi Boggiano Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] skipping optional parameters From: mike@php.net (Michael Wallner) On 18 April 2012 01:23, Jordi Boggiano wrote: > On 18.04.2012 00:54, Stas Malyshev wrote: >> https://wiki.php.net/rfc/skipparams >> >> Basically, it allows you to do this: >> >> create_query("deleted=0", "name",,, /*report_errors*/ true); +1 > - Would it be possible to allow trailing commas in combination to this? > i.e. foo("arg",) would just call foo with "arg" and then the default > value for the second arg if there is one, or just nothing. That would > make multi-line function calls a bit cleaner, and more similar to arrays. Yet another +1! -- Regards, Mike