<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Putting extra state on enum constants</title>
	<link>http://tech.puredanger.com/2007/01/03/putting-extra-state-on-enum-constants/</link>
	<description>Alex Miller's technical blog</description>
	<pubDate>Sun, 12 Oct 2008 17:46:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: Alex</title>
		<link>http://tech.puredanger.com/2007/01/03/putting-extra-state-on-enum-constants/#comment-10750</link>
		<pubDate>Mon, 15 Oct 2007 20:08:47 +0000</pubDate>
		<guid>http://tech.puredanger.com/2007/01/03/putting-extra-state-on-enum-constants/#comment-10750</guid>
					<description>Trying to remember...this was long ago at a company far, far away now.  Of course, this was not the actual code, it was the idea distilled into an example.  

As far as I can recall, I believe the enum could actually have been the strategy.  The enum was added over the top of an existing strategy pattern so it may been that I just didn't take the refactoring far enough.  I don't think there's any technical reason that would prevent this.</description>
		<content:encoded><![CDATA[<p>Trying to remember&#8230;this was long ago at a company far, far away now.  Of course, this was not the actual code, it was the idea distilled into an example.  </p>
<p>As far as I can recall, I believe the enum could actually have been the strategy.  The enum was added over the top of an existing strategy pattern so it may been that I just didn&#8217;t take the refactoring far enough.  I don&#8217;t think there&#8217;s any technical reason that would prevent this.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Brian Gilstrap</title>
		<link>http://tech.puredanger.com/2007/01/03/putting-extra-state-on-enum-constants/#comment-10749</link>
		<pubDate>Mon, 15 Oct 2007 19:55:12 +0000</pubDate>
		<guid>http://tech.puredanger.com/2007/01/03/putting-extra-state-on-enum-constants/#comment-10749</guid>
					<description>Given that your getStrategy method takes no arguments, it seems to beg the questionn of why the Enum values are not themselves the strategies. Was there some reason this wouldn't work for you?</description>
		<content:encoded><![CDATA[<p>Given that your getStrategy method takes no arguments, it seems to beg the questionn of why the Enum values are not themselves the strategies. Was there some reason this wouldn&#8217;t work for you?
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
