+1. I LIKE https://wiki.php.net/rfc/namedparameters , please change OLD decide.
-----邮件原件----- 发件人: Ferenc Kovacs [mailto:tyr...@gmail.com] 发送时间: 2012年4月18日 15:19 收件人: Stas Malyshev 抄送: PHP Internals 主题: Re: [PHP-DEV] [RFC] skipping optional parameters On Wed, Apr 18, 2012 at 12:54 AM, Stas Malyshev <smalys...@sugarcrm.com>wrote: > Hi! > > One of the annoying things I've encountered in working with PHP was > dealing with functions having long optional parameter lists, > especially if you need to change only the last one - you have to copy > all the defaults. Full named params implementation would solve it, > probably, but before we have that here's an easier solution for part of the > problem: > > https://wiki.php.net/rfc/skipparams > > Basically, it allows you to do this: > > create_query("deleted=0", "name",,, /*report_errors*/ true); > > Implementation of it is here: > https://github.com/smalyshev/php-src/tree/skip_params > All things described in RFC seem to be working, please tell me if I > forgot anything. If it's accepted I'll also add tests, etc. of course. > > I would prefer Named parameters, but this is still better than the current situation. -- Ferenc Kovács @Tyr43l - http://tyrael.hu -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php