Hi!
Could we maybe keep this discussion contained to return value type hints please? Optional variable type hinting is a completely different topic that would require a separate RFC and implementation. If you are interested in this you can propose a RFC for this.
Actually, as I said many times in previous discussions on the topic, strict typing is useless (and, IMHO, even worse than that) if applied in small parts. If you have strict typing in return values, you'd have to have strict typing in variables, etc. - otherwise you'd have no way to protect yourself from hard-to-find runtime errors. And, actually, after that you'd have to make PHP compiled - since otherwise runtime errors will still be there. So in my opinion restricting discussion to return type strict typing is just deluding yourself.
-- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php