<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: What&#8217;s wrong with PHP closures?</title>
	<atom:link href="http://justafewlines.com/2009/10/whats-wrong-with-php-closures/feed/" rel="self" type="application/rss+xml" />
	<link>http://justafewlines.com/2009/10/whats-wrong-with-php-closures/</link>
	<description>That&#039;s all it takes, usually...</description>
	<lastBuildDate>Mon, 26 Apr 2010 05:19:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: [转]谈PHP 闭包特性在实际应用中的问题 - 沉夜集</title>
		<link>http://justafewlines.com/2009/10/whats-wrong-with-php-closures/comment-page-1/#comment-235</link>
		<dc:creator>[转]谈PHP 闭包特性在实际应用中的问题 - 沉夜集</dc:creator>
		<pubDate>Mon, 26 Apr 2010 05:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://justafewlines.com/?p=150#comment-235</guid>
		<description>[...] 原文链接： http://justafewlines.com/2009/10/whats-wrong-with-php-closures/ [...]</description>
		<content:encoded><![CDATA[<p>[...] 原文链接： <a href="http://justafewlines.com/2009/10/whats-wrong-with-php-closures/" rel="nofollow">http://justafewlines.com/2009/10/whats-wrong-with-php-closures/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zhongkun &#187; 谈PHP 闭包特性在实际应用中的问题</title>
		<link>http://justafewlines.com/2009/10/whats-wrong-with-php-closures/comment-page-1/#comment-234</link>
		<dc:creator>zhongkun &#187; 谈PHP 闭包特性在实际应用中的问题</dc:creator>
		<pubDate>Mon, 14 Dec 2009 10:46:13 +0000</pubDate>
		<guid isPermaLink="false">http://justafewlines.com/?p=150#comment-234</guid>
		<description>[...] 原文链接： http://justafewlines.com/2009/10/whats-wrong-with-php-closures/ [...]</description>
		<content:encoded><![CDATA[<p>[...] 原文链接： <a href="http://justafewlines.com/2009/10/whats-wrong-with-php-closures/" rel="nofollow">http://justafewlines.com/2009/10/whats-wrong-with-php-closures/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pawel</title>
		<link>http://justafewlines.com/2009/10/whats-wrong-with-php-closures/comment-page-1/#comment-136</link>
		<dc:creator>Pawel</dc:creator>
		<pubDate>Tue, 03 Nov 2009 17:29:16 +0000</pubDate>
		<guid isPermaLink="false">http://justafewlines.com/?p=150#comment-136</guid>
		<description>Hey Sam,

Yeah I read that Wiki. The problem is, they added closures, but it seems like it&#039;s only because it&#039;s trendy and cool these days (groovy, ruby, scala, everyone has them). As a  result, the feature is there, but it&#039;s cumbersome to use.

&gt; PHP has always resisted allow you to have 
&gt; two ways of doing the same action.

PHP is built incrementally, features are just tossed in randomly (at least it seems so sometimes), so redundant functionality is very common. Just take a look at PHP function list...

Personally, I think they did closures this way because it was easier. Otherwise, they&#039;d have to improve PHP parser, and that&#039;s why we got this clumsy syntax.

At least we can forget about create_function, which is obviously a good thing :)</description>
		<content:encoded><![CDATA[<p>Hey Sam,</p>
<p>Yeah I read that Wiki. The problem is, they added closures, but it seems like it&#8217;s only because it&#8217;s trendy and cool these days (groovy, ruby, scala, everyone has them). As a  result, the feature is there, but it&#8217;s cumbersome to use.</p>
<p>> PHP has always resisted allow you to have<br />
> two ways of doing the same action.</p>
<p>PHP is built incrementally, features are just tossed in randomly (at least it seems so sometimes), so redundant functionality is very common. Just take a look at PHP function list&#8230;</p>
<p>Personally, I think they did closures this way because it was easier. Otherwise, they&#8217;d have to improve PHP parser, and that&#8217;s why we got this clumsy syntax.</p>
<p>At least we can forget about create_function, which is obviously a good thing :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Hennessy</title>
		<link>http://justafewlines.com/2009/10/whats-wrong-with-php-closures/comment-page-1/#comment-121</link>
		<dc:creator>Sam Hennessy</dc:creator>
		<pubDate>Tue, 03 Nov 2009 00:26:22 +0000</pubDate>
		<guid isPermaLink="false">http://justafewlines.com/?p=150#comment-121</guid>
		<description>Sorry for the late comment.

Your correct in your observations of PHP, but you missed the reason my these features were added. (http://wiki.php.net/rfc/closures)

It was intended to clean up some issues with current use of things like create_function (http://us2.php.net/create_function).

PHP has always resisted allow you to have two ways of doing the same action. This is part of PHP&#039;s intentions of an easy language to learn.

So while your correct, I feel you&#039;ve left out the reasons why it was done that way.</description>
		<content:encoded><![CDATA[<p>Sorry for the late comment.</p>
<p>Your correct in your observations of PHP, but you missed the reason my these features were added. (<a href="http://wiki.php.net/rfc/closures" rel="nofollow">http://wiki.php.net/rfc/closures</a>)</p>
<p>It was intended to clean up some issues with current use of things like create_function (<a href="http://us2.php.net/create_function" rel="nofollow">http://us2.php.net/create_function</a>).</p>
<p>PHP has always resisted allow you to have two ways of doing the same action. This is part of PHP&#8217;s intentions of an easy language to learn.</p>
<p>So while your correct, I feel you&#8217;ve left out the reasons why it was done that way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pawel</title>
		<link>http://justafewlines.com/2009/10/whats-wrong-with-php-closures/comment-page-1/#comment-118</link>
		<dc:creator>Pawel</dc:creator>
		<pubDate>Mon, 02 Nov 2009 17:04:16 +0000</pubDate>
		<guid isPermaLink="false">http://justafewlines.com/?p=150#comment-118</guid>
		<description>Thanks :)

I wish I had more time to post...</description>
		<content:encoded><![CDATA[<p>Thanks :)</p>
<p>I wish I had more time to post&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Foo Bar</title>
		<link>http://justafewlines.com/2009/10/whats-wrong-with-php-closures/comment-page-1/#comment-116</link>
		<dc:creator>Foo Bar</dc:creator>
		<pubDate>Mon, 02 Nov 2009 08:09:43 +0000</pubDate>
		<guid isPermaLink="false">http://justafewlines.com/?p=150#comment-116</guid>
		<description>Congrats pal!

This is the first blog on PHP that does not suck...</description>
		<content:encoded><![CDATA[<p>Congrats pal!</p>
<p>This is the first blog on PHP that does not suck&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Just a Few Lines &#187; Making use of PHP closures</title>
		<link>http://justafewlines.com/2009/10/whats-wrong-with-php-closures/comment-page-1/#comment-21</link>
		<dc:creator>Just a Few Lines &#187; Making use of PHP closures</dc:creator>
		<pubDate>Mon, 12 Oct 2009 01:26:08 +0000</pubDate>
		<guid isPermaLink="false">http://justafewlines.com/?p=150#comment-21</guid>
		<description>[...] the previous post we used closures to implement Groovy-like array utilities. Today we&#8217;ll see how closures can [...]</description>
		<content:encoded><![CDATA[<p>[...] the previous post we used closures to implement Groovy-like array utilities. Today we&#8217;ll see how closures can [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Les</title>
		<link>http://justafewlines.com/2009/10/whats-wrong-with-php-closures/comment-page-1/#comment-18</link>
		<dc:creator>Les</dc:creator>
		<pubDate>Sat, 10 Oct 2009 19:44:44 +0000</pubDate>
		<guid isPermaLink="false">http://justafewlines.com/?p=150#comment-18</guid>
		<description>Lucus,

The fall of PHP? Yes... People have been talking about the fall and demise of PHP for the last 5 years or so but hey - the platform is still going strong and it can&#039;t be that bad if Microsoft has [recently] invested time and dollars in it.

Let me know when you [finally] wake up and see that PHP is a heavy weight in the development world - until then all you are doing is making me laugh (loudly).</description>
		<content:encoded><![CDATA[<p>Lucus,</p>
<p>The fall of PHP? Yes&#8230; People have been talking about the fall and demise of PHP for the last 5 years or so but hey &#8211; the platform is still going strong and it can&#8217;t be that bad if Microsoft has [recently] invested time and dollars in it.</p>
<p>Let me know when you [finally] wake up and see that PHP is a heavy weight in the development world &#8211; until then all you are doing is making me laugh (loudly).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pawel</title>
		<link>http://justafewlines.com/2009/10/whats-wrong-with-php-closures/comment-page-1/#comment-14</link>
		<dc:creator>Pawel</dc:creator>
		<pubDate>Wed, 07 Oct 2009 18:08:46 +0000</pubDate>
		<guid isPermaLink="false">http://justafewlines.com/?p=150#comment-14</guid>
		<description>@troelskn: Good idea, this would be like poor man&#039;s companion objects from Scala :)

@Lucas: I read your post, and well, can&#039;t add much. Let&#039;s just hope that JVM/.NET platforms gain better momentum in the &quot;non-enterprise&quot; market, so we finally don&#039;t have to decide between PHP with 1000&#039;s hosting options or Java/JVM with 10&#039;s...</description>
		<content:encoded><![CDATA[<p>@troelskn: Good idea, this would be like poor man&#8217;s companion objects from Scala :)</p>
<p>@Lucas: I read your post, and well, can&#8217;t add much. Let&#8217;s just hope that JVM/.NET platforms gain better momentum in the &#8220;non-enterprise&#8221; market, so we finally don&#8217;t have to decide between PHP with 1000&#8242;s hosting options or Java/JVM with 10&#8242;s&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucas Oman</title>
		<link>http://justafewlines.com/2009/10/whats-wrong-with-php-closures/comment-page-1/#comment-13</link>
		<dc:creator>Lucas Oman</dc:creator>
		<pubDate>Wed, 07 Oct 2009 16:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://justafewlines.com/?p=150#comment-13</guid>
		<description>Interesting article. The fail of PHP is sometimes overwhelming. I wrote about something similar here: http://lucasoman.blogspot.com/2009/08/php-is-dead.html</description>
		<content:encoded><![CDATA[<p>Interesting article. The fail of PHP is sometimes overwhelming. I wrote about something similar here: <a href="http://lucasoman.blogspot.com/2009/08/php-is-dead.html" rel="nofollow">http://lucasoman.blogspot.com/2009/08/php-is-dead.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
