Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37304 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30589 invoked from network); 29 Apr 2008 16:00:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Apr 2008 16:00:42 -0000 Authentication-Results: pb1.pair.com header.from=dz@bitxtender.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dz@bitxtender.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain bitxtender.com from 80.237.132.12 cause and error) X-PHP-List-Original-Sender: dz@bitxtender.com X-Host-Fingerprint: 80.237.132.12 wp005.webpack.hosteurope.de Received: from [80.237.132.12] ([80.237.132.12:55793] helo=wp005.webpack.hosteurope.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/77-26601-82647184 for ; Tue, 29 Apr 2008 12:00:41 -0400 Received: from munich.bitxtender.net ([85.183.90.3] helo=[10.2.24.101]); authenticated by wp005.webpack.hosteurope.de running ExIM using esmtpsa (TLSv1:RC4-SHA:128) id 1JqsFx-0004hC-Az; Tue, 29 Apr 2008 18:00:37 +0200 Cc: Nathan Nobbe , Alain Williams , internals@lists.php.net Message-ID: <5C0BCC94-62FB-470F-8FAF-05F5D9E1B55E@bitxtender.com> To: Sam Barrow In-Reply-To: <1209482524.3257.9.camel@sbarrow-desktop> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Tue, 29 Apr 2008 18:00:36 +0200 References: <1209137410.6642.9.camel@sbarrow-desktop> <20080425182341.GB14490@mint.phcomp.co.uk> <1209149047.20639.18.camel@sbarrow-desktop> <48122C14.7070705@omegavortex.net> <1209150944.20639.24.camel@sbarrow-desktop> <7dd2dc0b0804251224s750679acn169637efbd8653fa@mail.gmail.com> <1209151505.20639.25.camel@sbarrow-desktop> <20080425231305.GC14490@mint.phcomp.co.uk> <9484717D-2EC6-44FF-93C8-1A9911294AF6@bitxtender.com> <7dd2dc0b0804261524l22237b58tfb9d0a341ab77233@mail.gmail.com> <1209482524.3257.9.camel@sbarrow-desktop> X-Mailer: Apple Mail (2.919.2) X-bounce-key: webpack.hosteurope.de;dz@bitxtender.com;1209484841;2e1d1284; Subject: Re: [PHP-DEV] Return type hinting patch From: dz@bitxtender.com (=?ISO-8859-1?Q?David_Z=FClke?=) As I've pointed out, public array x() will become ambiguous once we introduce a type "function", which is not unlikely at this point David Am 29.04.2008 um 17:22 schrieb Sam Barrow: > > Well in summation I think this is something that should be > implemented, > I don't see any arguments against implementing this atleast for arrays > and classes, like we already have for function parameters. > > The only thing left would be to decide on the syntax > > public array function x() { // Probably the easiest > public array x() { // I like this best, if it's possible > public function x() return array { // Probably not, just throwing it > out > there > > Agree? > >