RE: [PHP-DEV] Skipping of defaulted parameters.
| From: | Will Fitch | Date: | Wed, 20 Oct 2010 18:45:13 +0000 |
| Subject: | RE: [PHP-DEV] Skipping of defaulted parameters. | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49942@lists.php.net to get a copy of this message | ||
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