Re: PATCH: anonymous functions in PHP
| From: | Michael Walter | Date: | Thu, 22 Mar 2007 15:00:32 +0000 |
| Subject: | Re: PATCH: anonymous functions in PHP | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-28552@lists.php.net to get a copy of this message | ||
On 3/22/07, Sean Coates <sean@caedmon.net> wrote:
That said, I like the idea of a first class callable object. For the example above, doing this: class SortByKey implements Callable {}Note that this is what Java did since day one (it was thought that anonymous inner classes were good enough). I heard that nowadays people seem to think differently; apparently there are multiple closure proposals for JDK 7. Regards, Michael