RE: [PHP-DEV] [RFC] Type hints
| From: | Andi Gutmans | Date: | Sun, 09 May 2004 11:14:33 +0000 |
| Subject: | RE: [PHP-DEV] [RFC] Type hints | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9759@lists.php.net to get a copy of this message | ||
At 02:12 PM 5/9/2004 +0300, Stanislav Malyshev wrote:
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).Yeah I agree. Already today, we have a special rule for constant arrays initialization. Andi