Re: Re: Type-hinted return values in PHP5?

From: Date: Thu, 19 Jul 2007 17:51:42 +0000
Subject: Re: Re: Type-hinted return values in PHP5?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-31107@lists.php.net to get a copy of this message
It could be interesting to know, if the reason why this hasn't been implemented already, is technical one, or a design decision?
I think it's design one since nobody took care to design it :) I personally don't see much need for it, since PHP is not a compiled language, so there's little use for specific syntax of prescribing value types. Since PHP has no concept of variable type, it's not clear what return type hinting would give you that good documenting practices and a decent IDE won't. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#31107) next »