Re: [RFC] Type hints
| From: | Stanislav Malyshev | Date: | Sun, 09 May 2004 10:42:34 +0000 |
| Subject: | Re: [RFC] Type hints | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9744@lists.php.net to get a copy of this message | ||
AG>>sure if this is the perfect solution:
AG>>nullable MyClass $a = 5
I must be missing something, but why typehinted variable should have any
default except for null anyway? If someone says "I want only MyClass
here!", why he should be able to put 5 there?
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115