<?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: Recursive, Anonymous, and Simple functions in Javascript</title>
	<atom:link href="http://codytaylor.org/2009/05/recursive-anonymous-and-simple-functions-in-javascript.html/feed" rel="self" type="application/rss+xml" />
	<link>http://codytaylor.org/2009/05/recursive-anonymous-and-simple-functions-in-javascript.html</link>
	<description>From Cody Taylor.</description>
	<lastBuildDate>Thu, 13 Oct 2011 06:41:44 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Zach</title>
		<link>http://codytaylor.org/2009/05/recursive-anonymous-and-simple-functions-in-javascript.html/comment-page-1#comment-3318</link>
		<dc:creator>Zach</dc:creator>
		<pubDate>Sun, 21 Jun 2009 23:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://codytaylor.org/?p=14033#comment-3318</guid>
		<description>Don&#039;t use arguments.callee, it&#039;s deprecated! If you need to reference your function in the function body, it&#039;s obvious you should be using a named function, not an anonymous one. Specifying a name will create a local variable in the functions scope of that name. Use that instead.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t use arguments.callee, it&#8217;s deprecated! If you need to reference your function in the function body, it&#8217;s obvious you should be using a named function, not an anonymous one. Specifying a name will create a local variable in the functions scope of that name. Use that instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://codytaylor.org/2009/05/recursive-anonymous-and-simple-functions-in-javascript.html/comment-page-1#comment-2021</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 25 May 2009 03:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://codytaylor.org/?p=14033#comment-2021</guid>
		<description>Alternatively you could man up and use the Y Combinator (see http://javascript.crockford.com/little.html) like a real functional programmer:

function Y(le) {
    return (function (f) {
        return f(f);
    }(function (f) {
        return le(function (x) {
            return f(f)(x);
        });
    }));
}

myButton.onclick = Y(function(f) {
if(i==0)
{
alert(”DONE”);
myButton.value = i;
return i;
}
alert(i);
return f(–i);
});</description>
		<content:encoded><![CDATA[<p>Alternatively you could man up and use the Y Combinator (see <a href="http://javascript.crockford.com/little.html)" rel="nofollow">http://javascript.crockford.com/little.html)</a> like a real functional programmer:</p>
<p>function Y(le) {<br />
    return (function (f) {<br />
        return f(f);<br />
    }(function (f) {<br />
        return le(function (x) {<br />
            return f(f)(x);<br />
        });<br />
    }));<br />
}</p>
<p>myButton.onclick = Y(function(f) {<br />
if(i==0)<br />
{<br />
alert(”DONE”);<br />
myButton.value = i;<br />
return i;<br />
}<br />
alert(i);<br />
return f(–i);<br />
});</p>
]]></content:encoded>
	</item>
</channel>
</rss>

