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

From: Date: Mon, 30 Jul 2007 15:44:12 +0000
Subject: Re: Re: Type-hinted return values in PHP5?
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-31324@lists.php.net to get a copy of this message
Stanislav Malyshev wrote:
I think the only serious advantage I could see would be to allow context-assistance IDEs more data, so they could provide method-completion.
PHPDoc does that with @return tag. True but there will be times when the documentation is wrong[1] or when the function returns something that it shouldn't.
Again, this really has little to do with IDEs. It is aimed improving the interface language construct. [1]http://bugs.php.net/bug.php?id=38402

« previous php.internals (#31324) next »