RE: [PHP-DEV] [RFC] Type hints
| From: | Stanislav Malyshev | Date: | Sun, 09 May 2004 11:12:32 +0000 |
| Subject: | RE: [PHP-DEV] [RFC] Type hints | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9757@lists.php.net to get a copy of this message | ||
AG>>There will be type hints for arrays too. Obviously, with PHP's dynamic
AG>>typing we can't have type hints for scalar values.
Well, with arrays it's the same thing - any non-array (while null being
array for the matter) default should not be accepted. Here it's more
complicated since we can have constant arrays, which we may or may not to
allow (I think it's a simple compile-time check anyway, so it may be good
to allow array initializers).
--
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115