Re: Return type hinting patch

From: Date: Tue, 29 Apr 2008 15:40:13 +0000
Subject: Re: Return type hinting patch
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-37300@lists.php.net to get a copy of this message
Mine uses less code to accomplish the same thing, doesn't introduce new tokens, and has an easier syntax. I'm still working on it, but I can give an update in a couple days. I just wanted to see what people thought about the implementation aspect of it. On Tue, 2008-04-29 at 17:37 +0200, Pierre Joye wrote: > On Tue, Apr 29, 2008 at 5:22 PM, Sam Barrow <sam@sambarrow.com> 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? > > > Again, what's about the well written RFC and patch from RFC? Have you > contacted him and/or tried to get things done there instead of > duplicating the discussions, the work and the code? > > > Thanks for your work, > > Cheers,

« previous php.internals (#37300) next »