Re: Re: [RFC] Strict type hints (parameter and return value)

From: Date: Thu, 17 Apr 2008 16:31:03 +0000
Subject: Re: Re: [RFC] Strict type hints (parameter and return value)
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-37081@lists.php.net to get a copy of this message
On Thu, 2008-04-17 at 09:18 -0700, Chris Stockton wrote: > On Thu, Apr 17, 2008 at 9:01 AM, Sam Barrow <sam@sambarrow.com> 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.

« previous php.internals (#37081) next »