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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to