<?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: Y Combinator in Java With Generics</title>
	<atom:link href="http://szeiger.de/blog/2007/08/12/y-combinator-in-java-with-generics/feed/" rel="self" type="application/rss+xml" />
	<link>http://szeiger.de/blog/2007/08/12/y-combinator-in-java-with-generics/</link>
	<description>Stefan Zeiger's Software Development Weblog</description>
	<lastBuildDate>Wed, 17 Mar 2010 13:24:26 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Daniel Martin</title>
		<link>http://szeiger.de/blog/2007/08/12/y-combinator-in-java-with-generics/comment-page-1/#comment-19</link>
		<dc:creator>Daniel Martin</dc:creator>
		<pubDate>Thu, 28 Feb 2008 11:17:09 +0000</pubDate>
		<guid isPermaLink="false">http://szeiger.de/blog/2007/08/12/y-combinator-in-java-with-generics/#comment-19</guid>
		<description>Ugh.  That was supposed to be:
So that Function&lt;String,Integer&gt; is a function that takes a String as a parameter, and returns an Integer.

Unfortunately, I had no way of knowing whether this blog accepted html in the comments and no way of previewing my comment before I made it.</description>
		<content:encoded><![CDATA[<p>Ugh.  That was supposed to be:<br />
So that Function&lt;String,Integer&gt; is a function that takes a String as a parameter, and returns an Integer.</p>
<p>Unfortunately, I had no way of knowing whether this blog accepted html in the comments and no way of previewing my comment before I made it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Martin</title>
		<link>http://szeiger.de/blog/2007/08/12/y-combinator-in-java-with-generics/comment-page-1/#comment-18</link>
		<dc:creator>Daniel Martin</dc:creator>
		<pubDate>Thu, 28 Feb 2008 11:14:53 +0000</pubDate>
		<guid isPermaLink="false">http://szeiger.de/blog/2007/08/12/y-combinator-in-java-with-generics/#comment-18</guid>
		<description>You can go further with the annotations - it&#039;s possible to do it entirely with annotations and no casting (I note that you need to do a cast to R and a cast to F in your version).  What you need to do to do this is to define a recursive type.

I show how here: http://dtm.livejournal.com/36832.html

I use the interface com.google.common.base.Function, which is like F except that the single method is called &quot;apply&quot; and the order of the type parameters are switched.  (So that Function  is a function that takes a String as a parameter, and returns an Integer)</description>
		<content:encoded><![CDATA[<p>You can go further with the annotations &#8211; it&#8217;s possible to do it entirely with annotations and no casting (I note that you need to do a cast to R and a cast to F in your version).  What you need to do to do this is to define a recursive type.</p>
<p>I show how here: <a href="http://dtm.livejournal.com/36832.html" rel="nofollow">http://dtm.livejournal.com/36832.html</a></p>
<p>I use the interface com.google.common.base.Function, which is like F except that the single method is called &#8220;apply&#8221; and the order of the type parameters are switched.  (So that Function  is a function that takes a String as a parameter, and returns an Integer)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
