On Wed, 2008-04-30 at 12:58 +0200, LAUPRETRE François (P) wrote:
> > From: Stanislav Malyshev [mailto:[EMAIL PROTECTED] 
> 
> > First is that function 
> > definition and code is usually written by the same person in the same 
> > (very small) context, and this person has to be somewhat 
> > absent-minded 
> > to forget what function returns from definition to return a 
> > dozen lines 
> > below. Supporting such absent-mindedness with language constructs 
> > doesn't appear appropriate.
> 
> Right, return type hinting is useless in such cases, but it is interesting 
> when we check whether a method is compatible with an implemented interface or 
> an extended/abstract class. In this case, both codes are typically not 
> written by the same person and specifying the methods' return types in an 
> interface makes sense.

This is my number one use, abstract methods that are later implemented.

> Francois
> 


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to