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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php