Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37347 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4592 invoked from network); 30 Apr 2008 11:51:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2008 11:51:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=sam@sambarrow.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sam@sambarrow.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sambarrow.com from 208.70.128.56 cause and error) X-PHP-List-Original-Sender: sam@sambarrow.com X-Host-Fingerprint: 208.70.128.56 smtp-gw30.mailanyone.net Received: from [208.70.128.56] ([208.70.128.56:42312] helo=smtp-gw30.mailanyone.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B3/45-05418-B2D58184 for ; Wed, 30 Apr 2008 07:51:08 -0400 Received: from mailanyone.net by smtp-gw30.mailanyone.net with esmtpsa (TLSv1:RC4-MD5:128) (MailAnyone extSMTP sam@sambarrow.com) id 1JrApy-0001Eu-I9; Wed, 30 Apr 2008 06:51:02 -0500 To: Jessie Hernandez Cc: Nathan Nobbe , David =?ISO-8859-1?Q?Z=FClke?= , Alain Williams , internals@lists.php.net In-Reply-To: <4817D5E6.3010606@gmail.com> 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> <4817D5E6.3010606@gmail.com> Content-Type: text/plain Date: Wed, 30 Apr 2008 07:47:26 -0400 Message-ID: <1209556046.24655.0.camel@sbarrow-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Return type hinting patch From: sam@sambarrow.com (Sam Barrow) On Tue, 2008-04-29 at 22:13 -0400, Jessie Hernandez wrote: > Sam Barrow wrote: > > 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? > > > > How about using the ActionScript syntax? > > public function x():array { ... } > I like that, but in that case we might as well leave out the colon. > -- > > Jessie Hernandez > Zend Certified Engineer (http://zend.com/zce.php?c=ZEND006359&r=222727282) > >