<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://java.dzone.com"  xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dz="http://www.developerzone.com/modules/dz/1.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
 <title>Javalobby - Comments for &quot;Dynamic visitor builder with closures&quot;</title>
 <link>http://java.dzone.com/news/dynamic-visitor-builder-closur</link>
 <description>Comments for &quot;Dynamic visitor builder with closures&quot;</description>
 <language>en</language>
<item>
 <title>I think those are generally</title>
 <link>http://java.dzone.com/news/dynamic-visitor-builder-closur#comment-1999</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;I think those are generally known as Multi-Methods and are available in a few languages.  Can&#039;t say I&#039;ve seen anyone even considering adding them to Java 7.  Maybe you can be the first. :)&lt;/p&gt;&lt;p&gt;Hopefully I&#039;ll have some time soon to continue playing with this! &lt;/p&gt;</description>
 <pubDate>Mon, 24 Mar 2008 23:10:12 -0400</pubDate>
 <dc:creator>puredanger</dc:creator>
 <guid isPermaLink="false">comment 1999 at http://java.dzone.com</guid>
</item>
<item>
 <title>-----BEGIN PGP SIGNED</title>
 <link>http://java.dzone.com/news/dynamic-visitor-builder-closur#comment-1985</link>
 <description>&lt;!--paging_filter--&gt;-----BEGIN PGP SIGNED MESSAGE-----&lt;br /&gt;Hash: SHA1&lt;br /&gt;&lt;br /&gt;Nice approach. As you said your going to further fumble around with this soon, maybe you could give us a more concrete example that in the end has a real result.&lt;br /&gt;&lt;br /&gt;I would suggest the follwoing task: Use a Building and it&#039;s parts (stairs, windows, doors, rooms) as real world objects for your nodes hierarchie. Implement a visitor that counts all steps of all stairs and which I could then ask &amp;quot;int getStepsCount()&amp;quot; for instance.&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Hm, btw - Why don&#039;t we get rid of visitor-double-dispatch in java 7 anyway? could we not just add/introduce a new kind of method-sematics which adds runtime-type method-dispatching instead of compiletime-type method-dispatching?&lt;br /&gt;&lt;br /&gt;We coud just add a new keyword &amp;quot;runtime&amp;quot; to use in a way like &amp;quot;public void accept(final runtime Node::Stair inStair)&amp;quot; and &amp;quot;public void accept(final runtime Node::Door inDoor)&amp;quot; with a sematics like - if a client calls Method accept with a compile-time type of Node which has a runtime-type of Stair (Door respectively) then just dispatch to the specific method. It would be due to the compiler to require a programmer to implement a &amp;quot;default&amp;quot; Method whenever there&#039;s a runtime dispatch Method, to which a method call could be dispatched in case there&#039;s no specific method for any of the given runtime-types...&lt;br /&gt;&lt;br /&gt;What a crazy idea...There must have been some kind of hallucinogen stuff in my coffee this morning. I see closures, I see no more checked exceptions, I see runtime-type dispatching, I see Java 7 that is no longer java...(sorry for the sarcasm, everything up to &amp;quot;++&amp;quot; is really meant as a constructive request ;-)&lt;br /&gt;-----BEGIN PGP SIGNATURE-----&lt;br /&gt;Version: GnuPG v1.4.7 (MingW32) - WinPT 1.2.0&lt;br /&gt;&lt;br /&gt;iQEVAwUBR+Y6NeDPAc7sqweYAQLveAgAr95QUwVo4bWlFo0bDvOJEJcP5r06kdlr&lt;br /&gt;JtEzXl8kPb6zb948S0G+In1oWWw1c7Kx6rgFVwdDB2b/jaE4/i6FrERTDZz7D1Iu&lt;br /&gt;56OwsvnmALw9CKbzW4qK9Wh/02KiD5Gxeq1UxT//IlwO6DCQ8XWcoLrjkxGyK/vl&lt;br /&gt;0gEsZb7mxqPEiUoi1+XyyEoFtD+m4uXb+OEPvHSBTSIOFlUgt/V94uH03xDoMq9P&lt;br /&gt;fqTDxrODF551rvI3RIxiRTTBb2QvhKcMYV6bx3ofWTtqCVdaY2IM1vSgfnZZj03X&lt;br /&gt;fgY6LBs0p4cvf95Ib77eGdP7pxp6GSf4up+zogIrIqEd2QLkWSyPLQ==&lt;br /&gt;=XX6g&lt;br /&gt;-----END PGP SIGNATURE-----&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
 <pubDate>Sun, 23 Mar 2008 07:10:58 -0400</pubDate>
 <dc:creator>phuber</dc:creator>
 <guid isPermaLink="false">comment 1985 at http://java.dzone.com</guid>
</item>
</channel>
</rss>
