Re: [RFC] Type hints
| From: | Sebastian Bergmann | Date: | Tue, 11 May 2004 13:55:34 +0000 |
| Subject: | Re: [RFC] Type hints | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-9816@lists.php.net to get a copy of this message | ||
Timm Friebe wrote:
> Aren't optional parameters and allowing NULL for typehints two
> different pairs of shoes?
IMHO, they are. And should stay that way. Unfortunately the only way we
currently have to denote a class-hinted parameter as optional is
Class $object = null
:-(
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/