Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37321 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67320 invoked from network); 30 Apr 2008 02:14:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2008 02:14:07 -0000 Authentication-Results: pb1.pair.com header.from=jrhernandez05@gmail.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=jrhernandez05@gmail.com; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain gmail.com does not designate 207.115.11.52 as permitted sender) X-PHP-List-Original-Sender: jrhernandez05@gmail.com X-Host-Fingerprint: 207.115.11.52 fmailhost02.isp.att.net Received: from [207.115.11.52] ([207.115.11.52:48206] helo=fmailhost01.isp.att.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 92/F5-28930-AE5D7184 for ; Tue, 29 Apr 2008 22:14:04 -0400 Received: from localhost.localdomain (adsl-161-238-189.mia.bellsouth.net[74.161.238.189]) by isp.att.net (frfwmhc02) with ESMTP id <20080430021358H0200c5tqhe>; Wed, 30 Apr 2008 02:14:00 +0000 X-Originating-IP: [74.161.238.189] Message-ID: <4817D5E6.3010606@gmail.com> Date: Tue, 29 Apr 2008 22:13:58 -0400 User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: Sam Barrow CC: Nathan Nobbe , =?ISO-8859-1?Q?David_Z=FClke?= , Alain Williams , internals@lists.php.net 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> In-Reply-To: <1209482524.3257.9.camel@sbarrow-desktop> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Return type hinting patch From: jrhernandez05@gmail.com (Jessie Hernandez) 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 { ... } -- Jessie Hernandez Zend Certified Engineer (http://zend.com/zce.php?c=ZEND006359&r=222727282)