<?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: Anonymous Classes</title>
	<atom:link href="http://www.jansch.nl/2005/11/19/anonymous-classes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jansch.nl/2005/11/19/anonymous-classes/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=anonymous-classes</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Wed, 03 Aug 2011 06:49:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Christian Dickmann</title>
		<link>http://www.jansch.nl/2005/11/19/anonymous-classes/#comment-32</link>
		<dc:creator>Christian Dickmann</dc:creator>
		<pubDate>Sat, 19 Nov 2005 14:31:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.jansch.nl/?p=231#comment-32</guid>
		<description>I think this special &quot;feature&quot; of Java is crap. It is just a workaround because of the lack of delegates/callbacks. Why is the actionPerformed related to the Button at all? The buttonClickEvent should be handled by the form, because the form defines the logic. So you do not extend the Button class at all, but just register your eventHanlder. Something like:
$button = new Button();
$button-&gt;addClickHandler($form,&#039;buttonClickEvent&#039;);
$form-&gt;add($button);

Then the method buttonClickEvent() of the object $form would be called when the button was clicked. 

Thats the C# way and in a dynamic language like PHP, you have so much freedom to nice things like that one!</description>
		<content:encoded><![CDATA[<p>I think this special &#8220;feature&#8221; of Java is crap. It is just a workaround because of the lack of delegates/callbacks. Why is the actionPerformed related to the Button at all? The buttonClickEvent should be handled by the form, because the form defines the logic. So you do not extend the Button class at all, but just register your eventHanlder. Something like:<br />
$button = new Button();<br />
$button->addClickHandler($form,&#8217;buttonClickEvent&#8217;);<br />
$form->add($button);</p>
<p>Then the method buttonClickEvent() of the object $form would be called when the button was clicked. </p>
<p>Thats the C# way and in a dynamic language like PHP, you have so much freedom to nice things like that one!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivo Jansch</title>
		<link>http://www.jansch.nl/2005/11/19/anonymous-classes/#comment-31</link>
		<dc:creator>Ivo Jansch</dc:creator>
		<pubDate>Sat, 19 Nov 2005 13:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.jansch.nl/?p=231#comment-31</guid>
		<description>Closures would be nice too. I think Closures and Anonymous Classes are somewhat similar but nevertheless each have their own strenghts. In the above examples, I&#039;d rather use anonymous classes than closures. 

(For those unfamiliar with the concept of Closure, there&#039;s a nice [url=http://www.perl.com/pub/a/2002/05/29/closure.html]explanation for Perl here[/url])</description>
		<content:encoded><![CDATA[<p>Closures would be nice too. I think Closures and Anonymous Classes are somewhat similar but nevertheless each have their own strenghts. In the above examples, I&#8217;d rather use anonymous classes than closures. </p>
<p>(For those unfamiliar with the concept of Closure, there&#8217;s a nice [url=http://www.perl.com/pub/a/2002/05/29/closure.html]explanation for Perl here[/url])</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Knaub</title>
		<link>http://www.jansch.nl/2005/11/19/anonymous-classes/#comment-30</link>
		<dc:creator>Alex Knaub</dc:creator>
		<pubDate>Sat, 19 Nov 2005 13:12:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.jansch.nl/?p=231#comment-30</guid>
		<description>in a dynamic language like PHP you want Closures. Anonymous Classes in Java are simply a crapy workaround for missing closures.</description>
		<content:encoded><![CDATA[<p>in a dynamic language like PHP you want Closures. Anonymous Classes in Java are simply a crapy workaround for missing closures.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: XpLib Blog</title>
		<link>http://www.jansch.nl/2005/11/19/anonymous-classes/#comment-29</link>
		<dc:creator>XpLib Blog</dc:creator>
		<pubDate>Sat, 19 Nov 2005 10:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.jansch.nl/?p=231#comment-29</guid>
		<description>Today I have read an interessting post from &lt;a href=&quot;http://www.achievo.org/blog/archives/23-Anonymous-Classes.html&quot; rel=&quot;nofollow&quot;&gt;Ivo Jansch&lt;/a&gt; at &lt;a href=&quot;http://www.planet-php.net/&quot; rel=&quot;nofollow&quot;&gt;planet php&lt;/a&gt; about his wishes for php6. He wrote that anonymous classes would be v</description>
		<content:encoded><![CDATA[<p>Today I have read an interessting post from <a href="http://www.achievo.org/blog/archives/23-Anonymous-Classes.html" rel="nofollow">Ivo Jansch</a> at <a href="http://www.planet-php.net/" rel="nofollow">planet php</a> about his wishes for php6. He wrote that anonymous classes would be v</p>
]]></content:encoded>
	</item>
</channel>
</rss>

