<?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: Iterators and hash tables</title>
	<atom:link href="http://blog.barisione.org/2007-12/iterators-and-hash-tables/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.barisione.org/2007-12/iterators-and-hash-tables/</link>
	<description></description>
	<lastBuildDate>Mon, 16 Jan 2012 11:53:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Zeeshan Ali</title>
		<link>http://blog.barisione.org/2007-12/iterators-and-hash-tables/comment-page-1/#comment-1255</link>
		<dc:creator>Zeeshan Ali</dc:creator>
		<pubDate>Sat, 08 Dec 2007 15:12:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.barisione.org/blog.html/p=114#comment-1255</guid>
		<description>&quot;I agree that it’s just a bit of syntactic sugar but a handy bit of syntactic sugar.&quot;

Agreed. :)</description>
		<content:encoded><![CDATA[<p>&#8220;I agree that it’s just a bit of syntactic sugar but a handy bit of syntactic sugar.&#8221;</p>
<p>Agreed. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barisione</title>
		<link>http://blog.barisione.org/2007-12/iterators-and-hash-tables/comment-page-1/#comment-1250</link>
		<dc:creator>barisione</dc:creator>
		<pubDate>Sat, 08 Dec 2007 12:07:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.barisione.org/blog.html/p=114#comment-1250</guid>
		<description>I agree that it&#039;s just a bit of syntactic sugar but a handy bit of syntactic sugar.

get_keys() and get_values() are useful but in this case they are not as handy as iter_init()/_next() and you have to free the list and to do a lookup.</description>
		<content:encoded><![CDATA[<p>I agree that it&#8217;s just a bit of syntactic sugar but a handy bit of syntactic sugar.</p>
<p>get_keys() and get_values() are useful but in this case they are not as handy as iter_init()/_next() and you have to free the list and to do a lookup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathias Hasselmann</title>
		<link>http://blog.barisione.org/2007-12/iterators-and-hash-tables/comment-page-1/#comment-1249</link>
		<dc:creator>Mathias Hasselmann</dc:creator>
		<pubDate>Sat, 08 Dec 2007 09:38:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.barisione.org/blog.html/p=114#comment-1249</guid>
		<description>Emmanuele Bassi: The iterator safes you the g_list_free and the table lookup, which both do not come for free.</description>
		<content:encoded><![CDATA[<p>Emmanuele Bassi: The iterator safes you the g_list_free and the table lookup, which both do not come for free.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emmanuele Bassi</title>
		<link>http://blog.barisione.org/2007-12/iterators-and-hash-tables/comment-page-1/#comment-1248</link>
		<dc:creator>Emmanuele Bassi</dc:creator>
		<pubDate>Fri, 07 Dec 2007 19:14:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.barisione.org/blog.html/p=114#comment-1248</guid>
		<description>mmh, and why not using the get_keys() and get_values() method I added in GLib 2.14?

  keys = g_hash_table_get_keys (table);
  for (l = keys; l != NULL; l = l-&gt;next)
    {
      gpointer key   = l-&gt;data;
      gpointer value = g_hash_table_lookup (table, key);

      /* do something with key and value */
    }
  g_list_free (keys);

this new API seems like a bit of syntactic sugar for high level languages refugees, but other than that I don&#039;t really see the point.</description>
		<content:encoded><![CDATA[<p>mmh, and why not using the get_keys() and get_values() method I added in GLib 2.14?</p>
<p>  keys = g_hash_table_get_keys (table);<br />
  for (l = keys; l != NULL; l = l-&gt;next)<br />
    {<br />
      gpointer key   = l-&gt;data;<br />
      gpointer value = g_hash_table_lookup (table, key);</p>
<p>      /* do something with key and value */<br />
    }<br />
  g_list_free (keys);</p>
<p>this new API seems like a bit of syntactic sugar for high level languages refugees, but other than that I don&#8217;t really see the point.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

