Re: [RFC] Type hints

From: Date: Sun, 09 May 2004 10:46:17 +0000
Subject: Re: [RFC] Type hints
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-9747@lists.php.net to get a copy of this message
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

« previous php.internals (#9747) next »