Re: Re: [RFC] skipping optional parameters
| From: | Nikita Popov | Date: | Wed, 18 Apr 2012 21:00:34 +0000 |
| Subject: | Re: Re: [RFC] skipping optional parameters | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60200@lists.php.net to get a copy of this message | ||
On Wed, Apr 18, 2012 at 10:24 PM, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
> Hi!
>
>> My one comment, which others have raised, is readability of multiple
>> commas -- TBH, at first glance it has the appearance of a mistake. I
>> think those suggesting a keyword such as "default" make a good point in
>> this regard -- it makes it 100% clear that you want the default value
>
> I wouldn't mind default but that means another keyword which means
> another disruption (default would be pretty common method name, etc.)
"default" is already a reserved keyword. It's used in switch
constructs. So it is safe to use :)
Nikita