<?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: Q: What Sucks More Than Java Generics?</title>
	<atom:link href="http://www.alittlemadness.com/2008/02/27/q-what-sucks-more-than-java-generics/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alittlemadness.com/2008/02/27/q-what-sucks-more-than-java-generics/</link>
	<description>A man needs a little madness, or else he never dares cut the rope and be free. -Nikos Kazantzakis</description>
	<lastBuildDate>Fri, 03 Feb 2012 00:04:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Peter Lawrey</title>
		<link>http://www.alittlemadness.com/2008/02/27/q-what-sucks-more-than-java-generics/comment-page-1/#comment-57133</link>
		<dc:creator>Peter Lawrey</dc:creator>
		<pubDate>Wed, 27 Feb 2008 21:19:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.alittlemadness.com/2008/02/27/q-what-sucks-more-than-java-generics/#comment-57133</guid>
		<description>I&#039;m a fan of Generic but there are some things about them I find dumb.

e.g.
Class&lt;Class&gt; clazz = Class.class; // compiles ok.
Class&lt;Class&gt; clazz = Class.class.getClass(); // requires a cast and gets a warning.

Map&lt;?, ?&gt; map;
for(Entry&lt;?, ?&gt; entry: map.entrySet()) // compiles ok.

Map map;
for(Entry entry: map.entrySet()) // requires a cast.

Set set = new HashSet&lt;Integer&gt;(); // ok.
Set&lt;Set&gt; setOfSet = new HashSet&lt;Set&lt;Integer&gt;&gt;(); // requires type erasure.</description>
		<content:encoded><![CDATA[<p>I&#8217;m a fan of Generic but there are some things about them I find dumb.</p>
<p>e.g.<br />
Class&lt;Class&gt; clazz = Class.class; // compiles ok.<br />
Class&lt;Class&gt; clazz = Class.class.getClass(); // requires a cast and gets a warning.</p>
<p>Map&lt;?, ?&gt; map;<br />
for(Entry&lt;?, ?&gt; entry: map.entrySet()) // compiles ok.</p>
<p>Map map;<br />
for(Entry entry: map.entrySet()) // requires a cast.</p>
<p>Set set = new HashSet&lt;Integer&gt;(); // ok.<br />
Set&lt;Set&gt; setOfSet = new HashSet&lt;Set&lt;Integer&gt;&gt;(); // requires type erasure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.alittlemadness.com/2008/02/27/q-what-sucks-more-than-java-generics/comment-page-1/#comment-57111</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 27 Feb 2008 18:13:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.alittlemadness.com/2008/02/27/q-what-sucks-more-than-java-generics/#comment-57111</guid>
		<description>Hi Taylor,

I think it is also just human nature to take for granted what you&#039;ve got and complain about what you haven&#039;t got.  Complaints about the weak points of generics are fine: they are far from perfect.  What I don&#039;t like is when the addition of generics to the language is painted as an abject failure.  The reality is the current implementation solves a lot of common problems from the pre-5 days, i.e. a step in the right direction.</description>
		<content:encoded><![CDATA[<p>Hi Taylor,</p>
<p>I think it is also just human nature to take for granted what you&#8217;ve got and complain about what you haven&#8217;t got.  Complaints about the weak points of generics are fine: they are far from perfect.  What I don&#8217;t like is when the addition of generics to the language is painted as an abject failure.  The reality is the current implementation solves a lot of common problems from the pre-5 days, i.e. a step in the right direction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taylor</title>
		<link>http://www.alittlemadness.com/2008/02/27/q-what-sucks-more-than-java-generics/comment-page-1/#comment-57103</link>
		<dc:creator>Taylor</dc:creator>
		<pubDate>Wed, 27 Feb 2008 16:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.alittlemadness.com/2008/02/27/q-what-sucks-more-than-java-generics/#comment-57103</guid>
		<description>True, I&#039;m afraid the arguments always focus on the library developer, rather than the api consumer.  As a consumer, generics are great, you know what you&#039;re getting, less type casting, etc.</description>
		<content:encoded><![CDATA[<p>True, I&#8217;m afraid the arguments always focus on the library developer, rather than the api consumer.  As a consumer, generics are great, you know what you&#8217;re getting, less type casting, etc.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

