Re: [RFC] skipping optional parameters
| From: | Peter Cowburn | Date: | Wed, 18 Apr 2012 10:51:02 +0000 |
| Subject: | Re: [RFC] skipping optional parameters | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60181@lists.php.net to get a copy of this message | ||
On 18 April 2012 11:38, Daniel Macedo <admacedo@gmail.com> wrote:
> You can't do that, NULL is a perfectly acceptable value to pass into a
> function, you wouldn't be able to know when you wanted to pass NULL or
> use the default value, e.g.:
>
>
You totally missed the point: hinting, not-so-subtly, at the
long-established convention to use null as the default value. I guess my
humour doesn't come across so well on the list. Lets get back to
discussing ",,," parameters.