Re: [RFC] skipping optional parameters
| From: | Yasuo Ohgaki | Date: | Tue, 17 Apr 2012 23:38:39 +0000 |
| Subject: | Re: [RFC] skipping optional parameters | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60135@lists.php.net to get a copy of this message | ||
Hi,
It's undefined, so it does not have to keep track state ;)
But it may require a lot of changes, so I don't matter much.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net
2012/4/18 Yasuo Ohgaki <yohgaki@ohgaki.net>:
> Hi,
>
> 2012/4/18 Stas Malyshev <smalyshev@sugarcrm.com>:
>> Hi!
>>
>>> Introducing "undefined" might be good.
>>> Intention becomes clearer and we may do
>>>
>>> if ($var === undefined) {
>>> echo '$var is undefined';
>>> }
>>
>> What is undefined and how $var gets assigned it?
>
> I'm thinking undefined like JavaScript.
>
> AFAIK, engine does not have undefined state.
> It may be too many changes required.
>
> Just skipping would work and I'm not against it.
>
> Regards,
>
> --
> Yasuo Ohgaki
> yohgaki@ohgaki.net