Re: Type hinting - Request for Discussion
| From: | Stanislav Malyshev | Date: | Fri, 10 Jul 2009 18:00:23 +0000 |
| Subject: | Re: Type hinting - Request for Discussion | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44931@lists.php.net to get a copy of this message | ||
Hi!
This would be the perfect pairing. A library utilizing strict/enforced types would surely want to indicate explicitly the return type.To what use? PHP can't do static type checking, and for dynamic checking specifying the type is useless - it's zval that gets checked, not the specification. And a lot of functions now return something like "object or false" or "string or false". -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com