Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60129 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36885 invoked from network); 17 Apr 2012 23:17:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2012 23:17:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=lists@rotorised.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lists@rotorised.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain rotorised.com from 117.55.227.20 cause and error) X-PHP-List-Original-Sender: lists@rotorised.com X-Host-Fingerprint: 117.55.227.20 mta-data1.ironport2.cbr1.mail-filtering.com.au Received: from [117.55.227.20] ([117.55.227.20:62028] helo=mta-data1.ironport2.cbr1.mail-filtering.com.au) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/5A-21594-3F9FD8F4 for ; Tue, 17 Apr 2012 19:17:09 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap0EAIX5jU+va78L/2dsb2JhbABEskWCCQEBBThAEQsYCRYPCQMCAQIBRRMIAQGICQG5Z40/gyQEm04TikSCeQ X-IronPort-AV: E=Sophos;i="4.75,438,1330866000"; d="scan'208";a="4906323" Received: from ju001lcs02.dfw.the-server.net.au (HELO ju001lcs02.dfw.the-server.com.au) ([175.107.191.11]) by smtp-data2.ironport2.cbr1.mail-filtering.com.au with ESMTP; 18 Apr 2012 09:17:04 +1000 Received: from [130.102.82.234] (helo=a82-234.nat.uq.edu.au) by ju001lcs02.dfw.the-server.com.au with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1SKHdt-000dXW-KR for internals@lists.php.net; Wed, 18 Apr 2012 09:17:02 +1000 Message-ID: <4F8DF9EC.7030902@rotorised.com> Date: Wed, 18 Apr 2012 09:17:00 +1000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: internals@lists.php.net References: <4F8DF4B1.2040307@sugarcrm.com> In-Reply-To: <4F8DF4B1.2040307@sugarcrm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] skipping optional parameters From: lists@rotorised.com (Ryan McCue) Stas Malyshev wrote: > Basically, it allows you to do this: > > create_query("deleted=0", "name",,, /*report_errors*/ true); > I'm a huge fan of this idea, for all the reasons listed on the RFC and one additional one: it brings normal functions in line with the syntax for list() - We can skip parameters in list() using the same syntax, so to my eye, this brings consistency. (Of course, list() is a construct, not a function, but considering how similar the syntax is, I think this makes sense.)