Re: Return type hinting patch
| From: | Chris Stockton | Date: | Sun, 27 Apr 2008 02:00:48 +0000 |
| Subject: | Re: Return type hinting patch | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37258@lists.php.net to get a copy of this message | ||
Anonymous functions as you know them today come from lambda calculus which
was created before computers were even made. Generally it is agreed anon
func == labmda can be used interchangeably.
Most developers will understand what:
public function lambda sowat () { return function OR lambda, whatever () { }
}
Seems more natural then whatever nightmare people could think of, like
public function Function or public function ANONFUNCLOL...
The thing that I hate about that idea is not a reserved word, any there is
surely plenty of people with functions named them. Perhaps that detail can
be worked out in the grammar without breaking bc.
-Chris
On Sat, Apr 26, 2008 at 5:20 PM, David Zülke <dz@bitxtender.com> wrote:
> But anonymous functions and lambda expressions are not the same thing...
>