Re: [RFC] Type hints

From: Date: Mon, 10 May 2004 07:43:03 +0000
Subject: Re: [RFC] Type hints
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-9781@lists.php.net to get a copy of this message
CS>>Just a thought: Allow default values to violate the type hint (maybe CS>>only a default value of null). Non-null defaults for class-typehinted variable is definitely bad. This means you code has to check somewhere if it's default or not - then why typehint it? If your method accepts non-objects - it should not be marked as "accepts only objects of this type". -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115

« previous php.internals (#9781) next »