At 01:42 PM 5/9/2004 +0300, Stanislav Malyshev wrote:
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?

Well maybe it's a bad example but he can put NULL instead of 5.


Andi

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



Reply via email to