<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: AS3 Iterator Factory API for Flex 2</title>
	<link>http://www.ericfeminella.com/blog/2006/12/13/as3-iterator-factory-api/</link>
	<description></description>
	<pubDate>Tue, 06 Jan 2009 21:04:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: Bjorn Schultheiss</title>
		<link>http://www.ericfeminella.com/blog/2006/12/13/as3-iterator-factory-api/#comment-364</link>
		<pubDate>Fri, 22 Dec 2006 00:15:21 +0000</pubDate>
		<guid>http://www.ericfeminella.com/blog/2006/12/13/as3-iterator-factory-api/#comment-364</guid>
					<description>Makes sense, i'm already starting to implement it now. see how i go :)</description>
		<content:encoded><![CDATA[<p>Makes sense, i&#8217;m already starting to implement it now. see how i go <img src='http://www.ericfeminella.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: eric</title>
		<link>http://www.ericfeminella.com/blog/2006/12/13/as3-iterator-factory-api/#comment-359</link>
		<pubDate>Thu, 21 Dec 2006 02:44:26 +0000</pubDate>
		<guid>http://www.ericfeminella.com/blog/2006/12/13/as3-iterator-factory-api/#comment-359</guid>
					<description>Hey Bjorn,

My main reason for using iterators over for loops in ActionScript is simplicity and re-usability. The Iterator pattern provides a standard mechanism for accessing  collections of objects and re-usability is the key here, not necessarily performance.

When I need to loop over a collection, array etc. I can do so simply by typing an single instance of an iterator as an IIterator and use the IteratorFactory to get the type of iterator needed. I typically use Iterators more often than for loops.

Using an iterator you can also reduce your code as a while loop is much leaner than a for loop.

So again, it is a matter of personal preference.

Hope that answers your question,
Eric</description>
		<content:encoded><![CDATA[<p>Hey Bjorn,</p>
<p>My main reason for using iterators over for loops in ActionScript is simplicity and re-usability. The Iterator pattern provides a standard mechanism for accessing  collections of objects and re-usability is the key here, not necessarily performance.</p>
<p>When I need to loop over a collection, array etc. I can do so simply by typing an single instance of an iterator as an IIterator and use the IteratorFactory to get the type of iterator needed. I typically use Iterators more often than for loops.</p>
<p>Using an iterator you can also reduce your code as a while loop is much leaner than a for loop.</p>
<p>So again, it is a matter of personal preference.</p>
<p>Hope that answers your question,<br />
Eric
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Bjorn Schultheiss</title>
		<link>http://www.ericfeminella.com/blog/2006/12/13/as3-iterator-factory-api/#comment-358</link>
		<pubDate>Thu, 21 Dec 2006 02:05:24 +0000</pubDate>
		<guid>http://www.ericfeminella.com/blog/2006/12/13/as3-iterator-factory-api/#comment-358</guid>
					<description>Hey Eric,

This is cool. Coming from flash we have always used for loops. I've just had a discussion with the java guys here over why we should be using iterators over for loops although a lot of their reasoning came down to multithreading issues.

What is the main benefit on our platform of using iterators over for loops?

Regards,
Bjorn</description>
		<content:encoded><![CDATA[<p>Hey Eric,</p>
<p>This is cool. Coming from flash we have always used for loops. I&#8217;ve just had a discussion with the java guys here over why we should be using iterators over for loops although a lot of their reasoning came down to multithreading issues.</p>
<p>What is the main benefit on our platform of using iterators over for loops?</p>
<p>Regards,<br />
Bjorn
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
