<?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: The only loop, the infinite loop</title>
	<atom:link href="http://blog.slickedit.com/2007/05/the-only-loop-the-infinite-loop/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.slickedit.com/2007/05/the-only-loop-the-infinite-loop/</link>
	<description>&#34;Hello World&#34; - The SlickEdit Developer Blog</description>
	<lastBuildDate>Tue, 27 Jul 2010 22:28:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: pappu kumar</title>
		<link>http://blog.slickedit.com/2007/05/the-only-loop-the-infinite-loop/comment-page-1/#comment-363</link>
		<dc:creator>pappu kumar</dc:creator>
		<pubDate>Tue, 18 Mar 2008 15:17:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=79#comment-363</guid>
		<description>all detail of infine looping of c language</description>
		<content:encoded><![CDATA[<p>all detail of infine looping of c language</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis B</title>
		<link>http://blog.slickedit.com/2007/05/the-only-loop-the-infinite-loop/comment-page-1/#comment-72</link>
		<dc:creator>Dennis B</dc:creator>
		<pubDate>Mon, 18 Jun 2007 14:23:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=79#comment-72</guid>
		<description>First, I acknowledged in the article that loop is no replacement for foreach.

However, I strongly disagree about your second statement.  foreach is one looping pattern, but generally, you loop until a condition is satisfied and then you break out of the loop.  With a set of items, the condition is running out of items.  But it is a mistake to shoe-horn all looping into the &quot;iteration over some set of items&quot; pattern.  That is replacing simplicity with unneccessary complexity, and that always leads to less readable code and more bugs.</description>
		<content:encoded><![CDATA[<p>First, I acknowledged in the article that loop is no replacement for foreach.</p>
<p>However, I strongly disagree about your second statement.  foreach is one looping pattern, but generally, you loop until a condition is satisfied and then you break out of the loop.  With a set of items, the condition is running out of items.  But it is a mistake to shoe-horn all looping into the &#8220;iteration over some set of items&#8221; pattern.  That is replacing simplicity with unneccessary complexity, and that always leads to less readable code and more bugs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.slickedit.com/2007/05/the-only-loop-the-infinite-loop/comment-page-1/#comment-71</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Mon, 18 Jun 2007 13:25:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=79#comment-71</guid>
		<description>I think the loop construct is broken for two reasons:

1. While it provides more freedom to the programmer to construct their loop, it imposes no semantic meaning (other than iteration) which is likely to lead to greater inter-programmer variability and hence less readable code. Further, the existing for, while etc. constructs have lead to idiom with which programmers are familiar; loop will have to grow its own idioms.

2. Looping is just iteration over some set of items. These items may be entirely abstract (e.g. in the case of an infinite loop and other constructs). I think it is much better to use an iterator pattern where one simply iterates by getting the next item, or exists the loop if no next item exists. For me at least, this approach leads to more readable code and fewer bugs.</description>
		<content:encoded><![CDATA[<p>I think the loop construct is broken for two reasons:</p>
<p>1. While it provides more freedom to the programmer to construct their loop, it imposes no semantic meaning (other than iteration) which is likely to lead to greater inter-programmer variability and hence less readable code. Further, the existing for, while etc. constructs have lead to idiom with which programmers are familiar; loop will have to grow its own idioms.</p>
<p>2. Looping is just iteration over some set of items. These items may be entirely abstract (e.g. in the case of an infinite loop and other constructs). I think it is much better to use an iterator pattern where one simply iterates by getting the next item, or exists the loop if no next item exists. For me at least, this approach leads to more readable code and fewer bugs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Hurst</title>
		<link>http://blog.slickedit.com/2007/05/the-only-loop-the-infinite-loop/comment-page-1/#comment-47</link>
		<dc:creator>John Hurst</dc:creator>
		<pubDate>Tue, 22 May 2007 20:05:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.slickedit.com/?p=79#comment-47</guid>
		<description>You&#039;re correct.  Experienced programmers will shrug it off, or complain.

I don&#039;t like to advocate conformity, but I do advocate consistency, where it makes sense.  For better or worse, the C-style languages benefit to some degree by a consistent set of control structures.
Most programmers know how to use if(), for(), while() and do.  They can apply the knowledge from other languages to Slick-C. The rare programmer who learns Slick-C before another C-style language can apply
what he learns in Slick-C to those other languages.

Of course, I don&#039;t advocate dropping &quot;parse with&quot;, or other Slick-C peculiarities that are actually useful. But this new loop construct, what is it really useful for?
What&#039;s so terrible about for(;;)???

Regards

John Hurst</description>
		<content:encoded><![CDATA[<p>You&#8217;re correct.  Experienced programmers will shrug it off, or complain.</p>
<p>I don&#8217;t like to advocate conformity, but I do advocate consistency, where it makes sense.  For better or worse, the C-style languages benefit to some degree by a consistent set of control structures.<br />
Most programmers know how to use if(), for(), while() and do.  They can apply the knowledge from other languages to Slick-C. The rare programmer who learns Slick-C before another C-style language can apply<br />
what he learns in Slick-C to those other languages.</p>
<p>Of course, I don&#8217;t advocate dropping &#8220;parse with&#8221;, or other Slick-C peculiarities that are actually useful. But this new loop construct, what is it really useful for?<br />
What&#8217;s so terrible about for(;;)???</p>
<p>Regards</p>
<p>John Hurst</p>
]]></content:encoded>
	</item>
</channel>
</rss>
