<?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"
	>
<channel>
	<title>Comments on: Java interop errata</title>
	<atom:link href="http://blog.tmorris.net/java-interop-errata/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tmorris.net/java-interop-errata/</link>
	<description>The weblog of Tony Morris</description>
	<pubDate>Tue, 06 Jan 2009 09:53:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Tony Morris</title>
		<link>http://blog.tmorris.net/java-interop-errata/#comment-7074</link>
		<dc:creator>Tony Morris</dc:creator>
		<pubDate>Thu, 14 Aug 2008 22:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/?p=213#comment-7074</guid>
		<description>Hi Jeff,
When you omit &lt;code&gt;=&lt;/code&gt;, the method is guaranteed to be of the type &lt;code&gt;Unit&lt;/code&gt;. This puts an additional type-check in place so that you don't do something like call &lt;code&gt;List.remove&lt;/code&gt; as the last statement expecting it to be a side-effect.

It becomes more important for &lt;code&gt;main&lt;/code&gt;, since you have no type checks in place at the call site. You'll just get a runtime error instead (no such method main).</description>
		<content:encoded><![CDATA[<p>Hi Jeff,<br />
When you omit <code>=</code>, the method is guaranteed to be of the type <code>Unit</code>. This puts an additional type-check in place so that you don&#8217;t do something like call <code>List.remove</code> as the last statement expecting it to be a side-effect.</p>
<p>It becomes more important for <code>main</code>, since you have no type checks in place at the call site. You&#8217;ll just get a runtime error instead (no such method main).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://blog.tmorris.net/java-interop-errata/#comment-6841</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Wed, 13 Aug 2008 08:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.tmorris.net/?p=213#comment-6841</guid>
		<description>Hi Tony

Could you explain what difference the equals sign makes in a function definition and why it is strongly advised to remove when returning Unit.

Thanks
Jeff</description>
		<content:encoded><![CDATA[<p>Hi Tony</p>
<p>Could you explain what difference the equals sign makes in a function definition and why it is strongly advised to remove when returning Unit.</p>
<p>Thanks<br />
Jeff</p>
]]></content:encoded>
	</item>
</channel>
</rss>
