<?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: To closure or not to closure</title>
	<atom:link href="http://tech.puredanger.com/index.php/2007/12/15/to-closure-or-not-to-closure/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.puredanger.com/2007/12/15/to-closure-or-not-to-closure/</link>
	<description>Alex Miller&#039;s technical blog</description>
	<lastBuildDate>Mon, 06 Feb 2012 19:39:50 -0800</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
	<item>
		<title>By: My starred Google Reader items about PL research and other things &#124; A Programmers Blog with Extra Bit of Creativity</title>
		<link>http://tech.puredanger.com/2007/12/15/to-closure-or-not-to-closure/comment-page-1/#comment-278887</link>
		<dc:creator>My starred Google Reader items about PL research and other things &#124; A Programmers Blog with Extra Bit of Creativity</dc:creator>
		<pubDate>Sat, 19 Feb 2011 05:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2007/12/15/to-closure-or-not-to-closure/#comment-278887</guid>
		<description>[...] To closure or not to closure [...]</description>
		<content:encoded><![CDATA[<p>[...] To closure or not to closure [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: My starred Google Reader items about PL research and other things &#124; Sagar Sunkle&#39;s Blog</title>
		<link>http://tech.puredanger.com/2007/12/15/to-closure-or-not-to-closure/comment-page-1/#comment-184349</link>
		<dc:creator>My starred Google Reader items about PL research and other things &#124; Sagar Sunkle&#39;s Blog</dc:creator>
		<pubDate>Sun, 10 Jan 2010 10:10:17 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2007/12/15/to-closure-or-not-to-closure/#comment-184349</guid>
		<description>[...] To closure or not to closure [...]</description>
		<content:encoded><![CDATA[<p>[...] To closure or not to closure [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pstickne</title>
		<link>http://tech.puredanger.com/2007/12/15/to-closure-or-not-to-closure/comment-page-1/#comment-19587</link>
		<dc:creator>pstickne</dc:creator>
		<pubDate>Thu, 03 Jan 2008 04:41:45 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2007/12/15/to-closure-or-not-to-closure/#comment-19587</guid>
		<description>I would love closures but I&#039;m not sure closures would be truly appreciated by themselves in Java because Java was not designed to be very &quot;functional&quot; (paradigm, not usefulness). That is, Java is set quite deep in the imperative/OO camp.

The primitive/object separation doesn&#039;t come from having a &quot;null&quot;.  Ruby, for instance, has &quot;nil&quot; (a &quot;null singleton object&quot;) and does not (outwardly) distinguish between primatives and other objects. The problem, unfortunately, comes from the very core of Java... I am currently using Scala which removes the int/Integer separation (or rather, lets the compiler do the work but, in a more natural and consistent manner than autoboxing in Java.) Using the Option (&quot;Maybe monad&quot;) in Scala makes me hope I never have to touch null again. The Nice programming language (targets the JVM) offered complete &quot;maybe&quot; checking natively as well--I believe, directly around, null.</description>
		<content:encoded><![CDATA[<p>I would love closures but I&#8217;m not sure closures would be truly appreciated by themselves in Java because Java was not designed to be very &#8220;functional&#8221; (paradigm, not usefulness). That is, Java is set quite deep in the imperative/OO camp.</p>
<p>The primitive/object separation doesn&#8217;t come from having a &#8220;null&#8221;.  Ruby, for instance, has &#8220;nil&#8221; (a &#8220;null singleton object&#8221;) and does not (outwardly) distinguish between primatives and other objects. The problem, unfortunately, comes from the very core of Java&#8230; I am currently using Scala which removes the int/Integer separation (or rather, lets the compiler do the work but, in a more natural and consistent manner than autoboxing in Java.) Using the Option (&#8220;Maybe monad&#8221;) in Scala makes me hope I never have to touch null again. The Nice programming language (targets the JVM) offered complete &#8220;maybe&#8221; checking natively as well&#8211;I believe, directly around, null.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Miller - Java 7 Roundup (Dec 18th)</title>
		<link>http://tech.puredanger.com/2007/12/15/to-closure-or-not-to-closure/comment-page-1/#comment-17927</link>
		<dc:creator>Alex Miller - Java 7 Roundup (Dec 18th)</dc:creator>
		<pubDate>Tue, 18 Dec 2007 15:54:06 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2007/12/15/to-closure-or-not-to-closure/#comment-17927</guid>
		<description>[...] My random thoughts [...]</description>
		<content:encoded><![CDATA[<p>[...] My random thoughts [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://tech.puredanger.com/2007/12/15/to-closure-or-not-to-closure/comment-page-1/#comment-17855</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 18 Dec 2007 00:22:14 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2007/12/15/to-closure-or-not-to-closure/#comment-17855</guid>
		<description>Autoboxing wouldn&#039;t be so bad if its behavior wasn&#039;t different from the primitive types. Specifically its a little ridiculous to me that an Number[] a can throw a runtimeexception acessing it when a int[] can&#039;t (NullPointerException). The primitive/object value separation that is at the root of the type system says that a primitive can&#039;t have a null value, and this propagates to all the types. However the opposite situation isn&#039;t satisfactory either, (a null value suddenly becomes 0). I actually am thinking that there is no global solution. People that advocate the Maybe Monad and similar stratagems are misguided in my view since that is just pushing the problem back (useful if there is no difference but mostly just wrong).</description>
		<content:encoded><![CDATA[<p>Autoboxing wouldn&#8217;t be so bad if its behavior wasn&#8217;t different from the primitive types. Specifically its a little ridiculous to me that an Number[] a can throw a runtimeexception acessing it when a int[] can&#8217;t (NullPointerException). The primitive/object value separation that is at the root of the type system says that a primitive can&#8217;t have a null value, and this propagates to all the types. However the opposite situation isn&#8217;t satisfactory either, (a null value suddenly becomes 0). I actually am thinking that there is no global solution. People that advocate the Maybe Monad and similar stratagems are misguided in my view since that is just pushing the problem back (useful if there is no difference but mostly just wrong).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

