Newsgroups: php.internals,php.internals Path: news.php.net Xref: news.php.net php.internals:36847 php.internals:36848 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17876 invoked from network); 7 Apr 2008 15:02:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2008 15:02:21 -0000 X-Host-Fingerprint: 209.155.232.242 office.atl.schematic.com Received: from [209.155.232.242] ([209.155.232.242:15049] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/CE-50465-A773AF74 for ; Mon, 07 Apr 2008 11:02:19 -0400 To: internals@lists.php.net,Jarismar Chaves da Silva Message-ID: <47FA37C2.80703@php.net> Date: Mon, 07 Apr 2008 11:03:30 -0400 User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0 MIME-Version: 1.0 CC: troels knak-nielsen , Felipe Pena , internals@lists.php.net References: <1207539695.5736.42.camel@pena> <20080407013257.idn4b6sfwkc40c4c@zesix.com> <1207571296.5331.23.camel@felipe> <98b8086f0804070606v59c4c849vedbe52a7797288d1@mail.gmail.com> <47FA1E54.8050104@adplabs.com.br> In-Reply-To: <47FA1E54.8050104@adplabs.com.br> X-Enigmail-Version: 0.95.6 OpenPGP: id=CE409D61 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 209.155.232.242 Subject: Re: [PHP-DEV] Return type hints From: ramsey@php.net (Ben Ramsey) On 4/7/08 9:15 AM, Jarismar Chaves da Silva wrote: > Or something like this would be nice too, please avoid using + or > (). > > class test { > public static Itest function testing($instance) { > return $instance; > } > } I think this is the most intuitive approach. However, this means that regular function declarations would be like: Itest function testing($instance) { return $instance; } Would this present a problem? -- Ben Ramsey http://benramsey.com/