<?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: JSLint</title>
	<atom:link href="http://www.tumuski.com/2009/01/jslint/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tumuski.com/2009/01/jslint/</link>
	<description>When life gives you demons, make demonade.</description>
	<lastBuildDate>Sun, 20 Nov 2011 23:17:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Ben Shoemate</title>
		<link>http://www.tumuski.com/2009/01/jslint/comment-page-1/#comment-610</link>
		<dc:creator>Ben Shoemate</dc:creator>
		<pubDate>Sun, 20 Nov 2011 23:17:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.tumuski.com/?p=203#comment-610</guid>
		<description>Good stuff. Reading the post and the comments was very enlightening.</description>
		<content:encoded><![CDATA[<p>Good stuff. Reading the post and the comments was very enlightening.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary A. Stafford</title>
		<link>http://www.tumuski.com/2009/01/jslint/comment-page-1/#comment-578</link>
		<dc:creator>Gary A. Stafford</dc:creator>
		<pubDate>Tue, 13 Sep 2011 02:05:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.tumuski.com/?p=203#comment-578</guid>
		<description>Thanks. I didn&#039;t fully understand the issue until reading your post. Made it very clear.</description>
		<content:encoded><![CDATA[<p>Thanks. I didn't fully understand the issue until reading your post. Made it very clear.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.tumuski.com/2009/01/jslint/comment-page-1/#comment-144</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sat, 28 Aug 2010 01:08:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.tumuski.com/?p=203#comment-144</guid>
		<description>I guess I was taking the meaning of recursive too literally. It looks like in f sharp a function marked as recursive does not have to call itself.

The code below does what we want, ie calling the f2 function before it is defined.
let rec f1 () =
  printfn &quot;in f1&quot;
  f2()
and f2 () =
  printfn &quot;in f2&quot;

If you add a line at the end calling f1() from f2 it also works and forms and unending loop

But I don&#039;t know how to do the equivalent in javascript</description>
		<content:encoded><![CDATA[<p>I guess I was taking the meaning of recursive too literally. It looks like in f sharp a function marked as recursive does not have to call itself.</p>
<p>The code below does what we want, ie calling the f2 function before it is defined.<br />
let rec f1 () =<br />
  printfn &quot;in f1&quot;<br />
  f2()<br />
and f2 () =<br />
  printfn &quot;in f2&quot;</p>
<p>If you add a line at the end calling f1() from f2 it also works and forms and unending loop</p>
<p>But I don't know how to do the equivalent in javascript</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.tumuski.com/2009/01/jslint/comment-page-1/#comment-143</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Fri, 27 Aug 2010 20:35:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.tumuski.com/?p=203#comment-143</guid>
		<description>Thomas,

Unfortunately, I don&#039;t know.
I came to this site looking for an answer to that very question

F sharp has a construction called &quot;and&quot; where you declare function a and function b joined by &quot;and&quot;, thus informing the compiler that function a will recursively call function b and vice versa

However I haven&#039;t figured out how to deal with the (simpler) case you describe where function a needs to call function b and vice versa in a non recursive way

Perhaps you join both functions together using some higher order function.

If anyone has any ideas I would be grateful to hear them</description>
		<content:encoded><![CDATA[<p>Thomas,</p>
<p>Unfortunately, I don't know.<br />
I came to this site looking for an answer to that very question</p>
<p>F sharp has a construction called &quot;and&quot; where you declare function a and function b joined by &quot;and&quot;, thus informing the compiler that function a will recursively call function b and vice versa</p>
<p>However I haven't figured out how to deal with the (simpler) case you describe where function a needs to call function b and vice versa in a non recursive way</p>
<p>Perhaps you join both functions together using some higher order function.</p>
<p>If anyone has any ideas I would be grateful to hear them</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thomasperi</title>
		<link>http://www.tumuski.com/2009/01/jslint/comment-page-1/#comment-142</link>
		<dc:creator>thomasperi</dc:creator>
		<pubDate>Wed, 25 Aug 2010 22:49:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.tumuski.com/?p=203#comment-142</guid>
		<description>Peter, what do you disagree with?

How would you suggest we go about writing two functions that recursively call each other?  It is necessary for one function to be placed before the other in code; therefore, the invocation of one of the two functions must take place at a position in the file that is earlier than the position at which that function is defined.

How is it done in F Sharp?</description>
		<content:encoded><![CDATA[<p>Peter, what do you disagree with?</p>
<p>How would you suggest we go about writing two functions that recursively call each other?  It is necessary for one function to be placed before the other in code; therefore, the invocation of one of the two functions must take place at a position in the file that is earlier than the position at which that function is defined.</p>
<p>How is it done in F Sharp?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.tumuski.com/2009/01/jslint/comment-page-1/#comment-141</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Wed, 25 Aug 2010 21:29:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.tumuski.com/?p=203#comment-141</guid>
		<description>I disagree. I think what you are suggest might be useful, but you are in a sense tricking jslint.
Douglas Crockford says that he expects functions to be defined before they are used (note the function, not the variable)

Also newer functional languages such as f sharp also demand that functions are defined before they are used</description>
		<content:encoded><![CDATA[<p>I disagree. I think what you are suggest might be useful, but you are in a sense tricking jslint.<br />
Douglas Crockford says that he expects functions to be defined before they are used (note the function, not the variable)</p>
<p>Also newer functional languages such as f sharp also demand that functions are defined before they are used</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon Thomson</title>
		<link>http://www.tumuski.com/2009/01/jslint/comment-page-1/#comment-121</link>
		<dc:creator>Brandon Thomson</dc:creator>
		<pubDate>Sun, 20 Sep 2009 15:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.tumuski.com/?p=203#comment-121</guid>
		<description>Thanks, this helped me get a better perspective on the JSLint error. I think I am going to restructure my code to use variable declarations like you describe here.</description>
		<content:encoded><![CDATA[<p>Thanks, this helped me get a better perspective on the JSLint error. I think I am going to restructure my code to use variable declarations like you describe here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Angel</title>
		<link>http://www.tumuski.com/2009/01/jslint/comment-page-1/#comment-98</link>
		<dc:creator>Angel</dc:creator>
		<pubDate>Tue, 02 Jun 2009 22:46:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.tumuski.com/?p=203#comment-98</guid>
		<description>Thanks for the awesome tip...i&#039;ve been racking my brain trying to get my perfectly working scripts to validate with jslint haha</description>
		<content:encoded><![CDATA[<p>Thanks for the awesome tip...i've been racking my brain trying to get my perfectly working scripts to validate with jslint haha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pirkka Hartikainen</title>
		<link>http://www.tumuski.com/2009/01/jslint/comment-page-1/#comment-96</link>
		<dc:creator>Pirkka Hartikainen</dc:creator>
		<pubDate>Thu, 07 May 2009 11:45:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.tumuski.com/?p=203#comment-96</guid>
		<description>Thanks, this helped me out too! I couldn&#039;t figure out what was so bad about not having my functions declared in a certain (and impossible to reach) order.</description>
		<content:encoded><![CDATA[<p>Thanks, this helped me out too! I couldn't figure out what was so bad about not having my functions declared in a certain (and impossible to reach) order.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hatem Nassrat</title>
		<link>http://www.tumuski.com/2009/01/jslint/comment-page-1/#comment-87</link>
		<dc:creator>Hatem Nassrat</dc:creator>
		<pubDate>Sat, 28 Feb 2009 22:18:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.tumuski.com/?p=203#comment-87</guid>
		<description>Thank you my friend. This drove me crazy. I just now found out the right way to declare the function handle before writing the implementation.</description>
		<content:encoded><![CDATA[<p>Thank you my friend. This drove me crazy. I just now found out the right way to declare the function handle before writing the implementation.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

