Re: Type hints with null default values
| From: | Cristiano Duarte | Date: | Tue, 16 Nov 2004 17:12:10 +0000 |
| Subject: | Re: Type hints with null default values | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13874@lists.php.net to get a copy of this message | ||
Andi Gutmans wrote:
> At 10:53 AM 10/27/2004 +0200, Christian Schneider wrote:
>>Advocating to only change the PHP syntax to simplify it,
>
> Yeah I tend to agree. Adding [] for a not that popular case seems not to
> be worth it. It just adds more complexity to the syntax.
> I suggest to either leave as is or to support default values of NULL
> (only) and if that is given then you may also pass NULL (give it a double
> meaning).
Will be possible to implement this "null default value" with "double
meaning" for 5.1? Just as information, since it would help me a lot.
Cristiano Duarte