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?
Dec 25, 2007 @ 15: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.

tagged: lexical patch scope parse christianseller lexical patch scope parse christianseller

Link:

SitePoint PHP Blog:
Lexical scope to appear in PHP?
Dec 25, 2007 @ 15: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.

tagged: lexical patch scope parse christianseller lexical patch scope parse christianseller

Link:

International PHP Magazine:
Poll Question: Why PHP Sucks
Nov 21, 2006 @ 14:57:00

The results of the latest International PHP Magazine are in and posted today on their site. The question this time was asking developers and visitors alike what they think sucks about PHP.

Choices included "No lexical scoping", "PEAR", and "Worst Configuration System" but one climbed to the top far above the others - "No namespacing". Trailing that at a distant second were two, getting the same number of votes - "No lexical scoping" and "Can't afford a vowel" (hmm, interesting).

Up for this week is a new poll that asks those out there that have used the Symfony framework to cast their votes about what they think is the best feature the project has included. Check it out and cast your vote today...

tagged: sucks poll question namespacing lexical scoping sucks poll question namespacing lexical scoping

Link:

International PHP Magazine:
Poll Question: Why PHP Sucks
Nov 21, 2006 @ 14:57:00

The results of the latest International PHP Magazine are in and posted today on their site. The question this time was asking developers and visitors alike what they think sucks about PHP.

Choices included "No lexical scoping", "PEAR", and "Worst Configuration System" but one climbed to the top far above the others - "No namespacing". Trailing that at a distant second were two, getting the same number of votes - "No lexical scoping" and "Can't afford a vowel" (hmm, interesting).

Up for this week is a new poll that asks those out there that have used the Symfony framework to cast their votes about what they think is the best feature the project has included. Check it out and cast your vote today...

tagged: sucks poll question namespacing lexical scoping sucks poll question namespacing lexical scoping

Link:


Trending Topics: