<?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, 30 Apr 2012 00:59:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Pawel</title>
		<link>http://justafewlines.com/2009/10/whats-wrong-with-php-closures/comment-page-1/#comment-248</link>
		<dc:creator>Pawel</dc:creator>
		<pubDate>Sun, 04 Sep 2011 15:07:54 +0000</pubDate>
		<guid isPermaLink="false">http://justafewlines.com/?p=150#comment-248</guid>
		<description>This kind of syntax would be nice, but... it&#039;s still the good old PHP :)</description>
		<content:encoded><![CDATA[<p>This kind of syntax would be nice, but&#8230; it&#8217;s still the good old PHP :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thibaut Assus</title>
		<link>http://justafewlines.com/2009/10/whats-wrong-with-php-closures/comment-page-1/#comment-247</link>
		<dc:creator>Thibaut Assus</dc:creator>
		<pubDate>Wed, 31 Aug 2011 08:47:48 +0000</pubDate>
		<guid isPermaLink="false">http://justafewlines.com/?p=150#comment-247</guid>
		<description>Amazing, I searched a way of doing that kind of stuff in PHP !
Thank you very much for helping me with this old language !

Do you think we could create arrays declaratively like :
[2, 3] and change the -&gt; in . ?
and remove this crappy useless $ ?
so we could do : [2, 3].map(function(x) {return x + 2;});</description>
		<content:encoded><![CDATA[<p>Amazing, I searched a way of doing that kind of stuff in PHP !<br />
Thank you very much for helping me with this old language !</p>
<p>Do you think we could create arrays declaratively like :<br />
[2, 3] and change the -&gt; in . ?<br />
and remove this crappy useless $ ?<br />
so we could do : [2, 3].map(function(x) {return x + 2;});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://justafewlines.com/2009/10/whats-wrong-with-php-closures/comment-page-1/#comment-246</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 29 Mar 2011 21:38:27 +0000</pubDate>
		<guid isPermaLink="false">http://justafewlines.com/?p=150#comment-246</guid>
		<description>Your use of closures is very similar to what one would do in Haskell or Scheme: use an anonymous function (lambda) as an argument to some higher order function.</description>
		<content:encoded><![CDATA[<p>Your use of closures is very similar to what one would do in Haskell or Scheme: use an anonymous function (lambda) as an argument to some higher order function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pawel</title>
		<link>http://justafewlines.com/2009/10/whats-wrong-with-php-closures/comment-page-1/#comment-245</link>
		<dc:creator>Pawel</dc:creator>
		<pubDate>Fri, 08 Oct 2010 08:24:36 +0000</pubDate>
		<guid isPermaLink="false">http://justafewlines.com/?p=150#comment-245</guid>
		<description>I wouldn&#039;t call it obsession, but the less code you have to look at, debug and work with, the better :)</description>
		<content:encoded><![CDATA[<p>I wouldn&#8217;t call it obsession, but the less code you have to look at, debug and work with, the better :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Some Guy</title>
		<link>http://justafewlines.com/2009/10/whats-wrong-with-php-closures/comment-page-1/#comment-244</link>
		<dc:creator>Some Guy</dc:creator>
		<pubDate>Fri, 08 Oct 2010 00:27:26 +0000</pubDate>
		<guid isPermaLink="false">http://justafewlines.com/?p=150#comment-244</guid>
		<description>Why is everyone obsessed with these one-liners? If reducing the amount of typing is the main goal, then I would just use Ruby On Rails. PHP is for speed, not to be pretty.</description>
		<content:encoded><![CDATA[<p>Why is everyone obsessed with these one-liners? If reducing the amount of typing is the main goal, then I would just use Ruby On Rails. PHP is for speed, not to be pretty.</p>
]]></content:encoded>
	</item>
	<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>
</channel>
</rss>

