Re: [RFC] Skipping parameters take 2
| From: | Adam Harvey | Date: | Wed, 14 Jan 2015 19:21:02 +0000 |
| Subject: | Re: [RFC] Skipping parameters take 2 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80480@lists.php.net to get a copy of this message | ||
On 14 January 2015 at 11:15, Marc Bennewitz <dev@mabe.berlin> wrote:
> But I think adding "default" as new keyword is a big BC break!
Default already is a keyword: http://php.net/switch.
There's no BC break.
> I personally also don't like it and asked myself why can't the parameter
> simply skipped?
That was in the original proposal, but counting commas is pretty lousy
if you're skipping more than one or two parameters. Having a keyword
makes it more readable.
Adam