Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49942 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76914 invoked from network); 20 Oct 2010 18:45:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Oct 2010 18:45:07 -0000 Authentication-Results: pb1.pair.com header.from=will.fitch@quepasacorp.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=will.fitch@quepasacorp.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain quepasacorp.com designates 209.85.216.42 as permitted sender) X-PHP-List-Original-Sender: will.fitch@quepasacorp.com X-Host-Fingerprint: 209.85.216.42 mail-qw0-f42.google.com Received: from [209.85.216.42] ([209.85.216.42:52483] helo=mail-qw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/1B-16474-2B83FBC4 for ; Wed, 20 Oct 2010 14:45:06 -0400 Received: by qwg5 with SMTP id 5so2655084qwg.29 for ; Wed, 20 Oct 2010 11:45:03 -0700 (PDT) Received: by 10.229.84.204 with SMTP id k12mr6784194qcl.157.1287600302856; Wed, 20 Oct 2010 11:45:02 -0700 (PDT) References: <4CBF36C3.9080003@sugarcrm.com> In-Reply-To: <4CBF36C3.9080003@sugarcrm.com> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 thread-index: ActwheCFty1TeZnSRs6bu6gUMuG8bwAAGdaw Date: Wed, 20 Oct 2010 13:45:13 -0500 Message-ID: To: Stas Malyshev , RQuadling@googlemail.com Cc: Richard Quadling , PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: RE: [PHP-DEV] Skipping of defaulted parameters. From: will.fitch@quepasacorp.com (Will Fitch) Yup. I'm leaning towards Richard's idea of a predefined constant rather than a new keyword which would effectively do the same thing. The only issue I can see coming out of using the constant would be it's represented value. If a compile-time keyword were used, at least it could be caught there without running into any value clashing issues. -----Original Message----- From: Stas Malyshev [mailto:smalyshev@sugarcrm.com] Sent: Wednesday, October 20, 2010 1:37 PM To: RQuadling@googlemail.com Cc: Richard Quadling; PHP internals Subject: Re: [PHP-DEV] Skipping of defaulted parameters. Hi! > 3 - New keyword of default or void to specifically indicate the intent > to use the default value for the argument. Actually, 'default' is already a keyword (switch!), while _ is an actual function name (gettext). So default, syntactically, can work, while _ can't. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php