Re: [RFC] Type hints
| From: | Stanislav Malyshev | Date: | Sun, 09 May 2004 11:14:16 +0000 |
| Subject: | Re: [RFC] Type hints | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9758@lists.php.net to get a copy of this message | ||
AG>>I think it makes sense not to allow default initialization of non-NULL
AG>>values when there's a class type hint.
Having this, do we actually need both "= null" and "nullable" keyword?
They seem to be almost the same meaning, though not exactly - you can say
'nullable' on first parameter of two-parameter function, while you
couldn't - at least, until now - say '= null' for it.
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115