News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Lexical scope to appear in PHP?
December 25, 2007 @ 09:46:00

<> In this new post to the SitePoint PHP blog, Troels Knak-Nielsen talks about some of the advancements (and diagreements) that have happened around adding lexical scope to the create_function functionality.

The main argument against approving the patch, seems to be, that one would expect static scoping rules to apply to the anonymous function. After all, this is the case in similar languages, which support anonymous functions. One could only assume, that changing PHP to support this, would be a major undertaking.

One would be wrong, it seems.

A patch has been made to add the functionality (from Christian Seller) adding a new keyword, lexical, to make it all work.

0 comments voice your opinion now!
lexical patch scope parse christianseller lexical patch scope parse christianseller


blog comments powered by Disqus

Similar Posts

Bill Staples' Blog: IIS7 Patch for Windows Vista fixes CGI/PHP apps - multiple response headers

SitePoint PHP Blog: Lexical scope to appear in PHP?

William Candillon's Blog: Using XSLT to Visualize a Parse Tree

Scott Mattocks\' Blog: PHP-GTK News #10

PHPClasses.org: File upload progress meter for PHP 4, at last!


Community Events

Don't see your event here?
Let us know!


podcast laravel application interview example php7 list part2 opinion language project symfony composer programming community series framework api yii2 introduction

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework