<?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: You can hook code to the Java compiler</title>
	<atom:link href="http://rogersm.net/2008/11/you-can-hook-code-to-the-java-compiler/feed" rel="self" type="application/rss+xml" />
	<link>http://rogersm.net/2008/11/you-can-hook-code-to-the-java-compiler</link>
	<description>exploring area</description>
	<lastBuildDate>Tue, 25 Aug 2009 20:26:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: rogersm</title>
		<link>http://rogersm.net/2008/11/you-can-hook-code-to-the-java-compiler/comment-page-1#comment-20</link>
		<dc:creator>rogersm</dc:creator>
		<pubDate>Thu, 13 Nov 2008 09:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://rogersm.net/?p=17#comment-20</guid>
		<description>&lt;a href=&quot;http://rogersm.net/2008/11/you-can-hook-code-to-the-java-compiler#comment-14&quot; rel=&quot;nofollow&quot;&gt;@akuhn:&lt;/a&gt;:

I completely agree it will open a can of new bugs, but I still think it will be useful. 
Gnu R does something like that and it is surprisingly helpful.</description>
		<content:encoded><![CDATA[<p><a href="http://rogersm.net/2008/11/you-can-hook-code-to-the-java-compiler#comment-14" rel="nofollow">@akuhn:</a>:</p>
<p>I completely agree it will open a can of new bugs, but I still think it will be useful.<br />
Gnu R does something like that and it is surprisingly helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Kuhn</title>
		<link>http://rogersm.net/2008/11/you-can-hook-code-to-the-java-compiler/comment-page-1#comment-14</link>
		<dc:creator>Adrian Kuhn</dc:creator>
		<pubDate>Tue, 11 Nov 2008 00:06:35 +0000</pubDate>
		<guid isPermaLink="false">http://rogersm.net/?p=17#comment-14</guid>
		<description>Gotcha. This is indeed handy (given you have closures). From my experience with Smalltalk, it&#039;s best to offer it as an explicit feature. Some nasty runtime bugs may go almost undiscovered when all scalars act as arrays alltime. Thus I typically extend Smalltalk as follows (#do: iterates over a collection and applies a block, ie lambda on all elements):

Collection &gt;&gt; #doAsCollection: block
    self do: block

Object &gt;&gt; #doAsCollection: block
    block value: self

UndefinedObject &gt;&gt; #doAsCollection: block
    &quot;do nothing&quot;

If only extending Java would be as simple, smile :)</description>
		<content:encoded><![CDATA[<p>Gotcha. This is indeed handy (given you have closures). From my experience with Smalltalk, it&#8217;s best to offer it as an explicit feature. Some nasty runtime bugs may go almost undiscovered when all scalars act as arrays alltime. Thus I typically extend Smalltalk as follows (#do: iterates over a collection and applies a block, ie lambda on all elements):</p>
<p>Collection &gt;&gt; #doAsCollection: block<br />
    self do: block</p>
<p>Object &gt;&gt; #doAsCollection: block<br />
    block value: self</p>
<p>UndefinedObject &gt;&gt; #doAsCollection: block<br />
    &#8220;do nothing&#8221;</p>
<p>If only extending Java would be as simple, smile <img src='http://rogersm.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rogersm</title>
		<link>http://rogersm.net/2008/11/you-can-hook-code-to-the-java-compiler/comment-page-1#comment-6</link>
		<dc:creator>rogersm</dc:creator>
		<pubDate>Fri, 07 Nov 2008 10:06:22 +0000</pubDate>
		<guid isPermaLink="false">http://rogersm.net/?p=17#comment-6</guid>
		<description>&lt;a href=&quot;http://rogersm.net/2008/11/you-can-hook-code-to-the-java-compiler#comment-3&quot; rel=&quot;nofollow&quot;&gt;@akuhn:&lt;/a&gt;
I plan to write a post about that, but basically means non-container types (like int, char, float…) should be interpreted as single item container types (arrays, vectors, lists).
This allows doing things like:
&lt;pre&gt;
map(add, elem1, elem2)
&lt;/pre&gt;
without needing to check if elem1 and elem2are containers.

Null type should be interpreted as an empty container.</description>
		<content:encoded><![CDATA[<p><a href="http://rogersm.net/2008/11/you-can-hook-code-to-the-java-compiler#comment-3" rel="nofollow">@akuhn:</a><br />
I plan to write a post about that, but basically means non-container types (like int, char, float…) should be interpreted as single item container types (arrays, vectors, lists).<br />
This allows doing things like:</p>
<pre>
map(add, elem1, elem2)
</pre>
<p>without needing to check if elem1 and elem2are containers.</p>
<p>Null type should be interpreted as an empty container.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Kuhn</title>
		<link>http://rogersm.net/2008/11/you-can-hook-code-to-the-java-compiler/comment-page-1#comment-4</link>
		<dc:creator>Adrian Kuhn</dc:creator>
		<pubDate>Thu, 06 Nov 2008 22:08:51 +0000</pubDate>
		<guid isPermaLink="false">http://rogersm.net/?p=17#comment-4</guid>
		<description>NB the string interpolation is neat!</description>
		<content:encoded><![CDATA[<p>NB the string interpolation is neat!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Kuhn</title>
		<link>http://rogersm.net/2008/11/you-can-hook-code-to-the-java-compiler/comment-page-1#comment-3</link>
		<dc:creator>Adrian Kuhn</dc:creator>
		<pubDate>Thu, 06 Nov 2008 22:05:48 +0000</pubDate>
		<guid isPermaLink="false">http://rogersm.net/?p=17#comment-3</guid>
		<description>&lt;blockquote cite=&quot;&quot;&gt;I’m not into Java any longer, but it would be great to hack an extension so numbers are arrays of length 1.&lt;/blockquote&gt;

What is the use case of that?</description>
		<content:encoded><![CDATA[<blockquote cite=""><p>I’m not into Java any longer, but it would be great to hack an extension so numbers are arrays of length 1.</p></blockquote>
<p>What is the use case of that?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.241 seconds -->
