Re: [RFC] Anonymous functions
| From: | Andrei Zmievski | Date: | Sun, 24 Feb 2008 10:23:22 +0000 |
| Subject: | Re: [RFC] Anonymous functions | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-35765@lists.php.net to get a copy of this message | ||
To be clear, my statement was about the closures and not sexier anonymous functions. I agree that we need to do an RFC on this matter.
-Andrei
On Feb 23, 2008, at 8:36 PM, Andi Gutmans wrote:
I think we have to be very clear whether we are going to provide just a sexier notation for anonymous functions or closures (and if the latter what the semantics are). Just doing one and not figuring out the long term piece doesn't make sense because we may end up having two completely distinct features and/or feature creep over the next year which doesn't make much sense to me. I think in last discussion most ppl just preferred a sexier anonymous function esp. as there weren't very clear/clean proposals for how closures would work in PHP and what the benefits would be. So I definitely suggest to have a discussion, maybe RFC based like Stefan did but really decide once and for all on where we'd like to go with this. We all know that no features map 1:1 to PHP and there are always unique behaviors of our language and environment which require a fresh view at things.