Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37081 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91844 invoked from network); 17 Apr 2008 16:33:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2008 16:33:30 -0000 Authentication-Results: pb1.pair.com header.from=sam@sambarrow.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=sam@sambarrow.com; spf=permerror; 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:51244] helo=smtp-gw30.mailanyone.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/92-05127-ADB77084 for ; Thu, 17 Apr 2008 12:33:30 -0400 Received: from mailanyone.net by smtp-gw30.mailanyone.net with esmtpsa (TLSv1:RC4-MD5:128) (MailAnyone extSMTP sam@sambarrow.com) id 1JmX39-0005R3-9W; Thu, 17 Apr 2008 11:33:27 -0500 To: Chris Stockton Cc: internals@lists.php.net In-Reply-To: References: <46ccd1ab0804170742g142ed562t4f03339da549a820@mail.gmail.com> <48076FB3.1040303@cschneid.com> <1208448096.32403.13.camel@sbarrow-desktop> Content-Type: text/plain Date: Thu, 17 Apr 2008 12:31:03 -0400 Message-ID: <1208449863.32403.17.camel@sbarrow-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [RFC] Strict type hints (parameter and return value) From: sam@sambarrow.com (Sam Barrow) On Thu, 2008-04-17 at 09:18 -0700, Chris Stockton wrote: > On Thu, Apr 17, 2008 at 9:01 AM, Sam Barrow wrote: > > > I like this alot better too, the only downside is compatibility > > problems. > > > Can you explain, I understand; in partial the problem but I am curious what > can not be solved through added logic? function int() { } PHP won't know if this is a return type hint or function name. This specific case might be solvable with added logic though, I really don't know how to do it or how hard it would be; alot of this is done in the parser which I am only slightly familiar with.