<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>What Happens If I... &#187; ruby</title>
	<atom:link href="http://blog.arlim.org/tag/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.arlim.org</link>
	<description>Kim Wallmark's Technical Wanderings</description>
	<lastBuildDate>Tue, 20 Jul 2010 05:45:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Mixins vs. typeclasses</title>
		<link>http://blog.arlim.org/2009/11/22/mixins-vs-typeclasses/</link>
		<comments>http://blog.arlim.org/2009/11/22/mixins-vs-typeclasses/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 03:11:01 +0000</pubDate>
		<dc:creator>Kim Wallmark</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[haskell]]></category>
		<category><![CDATA[polymorphism]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.arlim.org/?p=78</guid>
		<description><![CDATA[This is a fragment of a discussion on polymorphism that I had in another context. I was pleased by how well this explanation came out, and wanted to put it in a more public format. I&#8217;ve thought more about the issue you raised of whether Haskell&#8217;s typeclasses are the same as Ruby&#8217;s mixins, and I [...]]]></description>
			<content:encoded><![CDATA[<p>This is a fragment of a discussion on polymorphism that I had in another context.  I was pleased by how well this explanation came out, and wanted to put it in a more public format.</p>
<blockquote><p>I&#8217;ve thought more about the issue you raised of whether Haskell&#8217;s typeclasses are the same as Ruby&#8217;s mixins, and I think my answer is a firm &#8220;sort of&#8221;.  A Ruby mixin provides a consistent API and a consistent implementation to any class it&#8217;s added to.  A Haskell typeclass provides a consistent API and an <em>individual</em> implementation to any type it&#8217;s defined for.  It&#8217;s roughly the difference between base classes and interfaces in C++/C#/Java.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.arlim.org/2009/11/22/mixins-vs-typeclasses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

