I actually remember there was some good discussion on this and there were pretty decent reasons for why this patch was not a full solution and only syntactic sugar, i.e. it didn't do what many expected except for making the syntax nicer. Don't have time right now but we should go back and re-read those discussions before opening a new one. I can probably do it over the next couple of days. I am not necessary against supporting such a solution but we need to make sure it's fully baked and that we clear know and agree on what is and what isn't supported (and that should be documented and not revisited every time someone comes and complains). Variable binding is one thing which would likely not make it into such an implementation unless there's a big shift in the intent of the patch.
We really need to get away from this "let's just commit it" mode on this list. As you saw with garbage collection, namespaces and other recent topics a lot of these topics need significantly more work before they are full baked and ready to actually make it into the code base. The ad-hoc way of committing new features just doesn't work. Andi > -----Original Message----- > From: Marcus Boerger [mailto:[EMAIL PROTECTED] > Sent: Monday, December 17, 2007 5:10 AM > To: Alexey Zakhlestin; Wez Furlong > Cc: Stas Malyshev; troels knak-nielsen; internals@lists.php.net > Subject: Re: [PHP-DEV] Re: PATCH: anonymous functions in PHP > > Hello Alexey, > > and for that reason we should do it! Can't Wez simply apply this? > > marcus > > Sunday, December 16, 2007, 3:22:40 PM, you wrote: > > > On 12/16/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > >> I think the problem there is that this syntax wouldn't support > external > >> variables, and without them there's not much difference between that > and > >> create_function. > > > The difference is, that it is compile-time and create_function is > run-time > > >> troels knak-nielsen wrote: > >> > What was the conclusion on Wez' patch from march [1]? The > discussion > >> > seemed to steer a bit off, on the discussion of scoping rules, but > is > >> > there any reason _not_ to implement Wez' patch in HEAD? > >> > Even if it doesn't entirely replace create_function, it would be > nice > >> > to have as a compile-time alternative. > >> > > >> > [1] http://groups.google.com/group/mailing.www.php- > dev/browse_thread/thread/a2c3296dc791369a/075209b288cb28de > >> > > >> > >> -- > >> Stanislav Malyshev, Zend Software Architect > >> [EMAIL PROTECTED] http://www.zend.com/ > >> (408)253-8829 MSN: [EMAIL PROTECTED] > >> > >> -- > >> PHP Internals - PHP Runtime Development Mailing List > >> To unsubscribe, visit: http://www.php.net/unsub.php > >> > >> > > > > -- > > Alexey Zakhlestin > > http://blog.milkfarmsoft.com/ > > > > > Best regards, > Marcus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php