Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31324 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36119 invoked by uid 1010); 30 Jul 2007 15:44:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36104 invoked from network); 30 Jul 2007 15:44:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jul 2007 15:44:18 -0000 X-Host-Fingerprint: 136.159.238.143 pc143-238.admin.ucalgary.ca Received: from [136.159.238.143] ([136.159.238.143:15458] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D0/C5-59109-F470EA64 for ; Mon, 30 Jul 2007 11:44:17 -0400 Message-ID: To: internals@lists.php.net Date: Mon, 30 Jul 2007 09:44:12 -0600 User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) MIME-Version: 1.0 References: <74.B1.05050.EADEC964@pb1.pair.com> <08.07.20814.2587AA64@pb1.pair.com> <46ABD596.3060005@zend.com> <200707281905.27822.larry@garfieldtech.com> <46AC48A9.9080301@zend.com> In-Reply-To: <46AC48A9.9080301@zend.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 136.159.238.143 Subject: Re: [PHP-DEV] Re: Type-hinted return values in PHP5? From: david.nqd@gmail.com (David Duong) 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