<?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: Scala: Type safe duck typing</title>
	<atom:link href="http://markthomas.info/blog/?feed=rss2&#038;p=66" rel="self" type="application/rss+xml" />
	<link>http://markthomas.info/blog/?p=66</link>
	<description>Deceptively random thoughts</description>
	<lastBuildDate>Mon, 11 Feb 2013 10:54:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Lars Støttrup</title>
		<link>http://markthomas.info/blog/?p=66&#038;cpage=1#comment-75953</link>
		<dc:creator>Lars Støttrup</dc:creator>
		<pubDate>Mon, 11 Feb 2013 10:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://markthomas.info/blog/?p=66#comment-75953</guid>
		<description>Excellent example. Easy to read and understand.</description>
		<content:encoded><![CDATA[<p>Excellent example. Easy to read and understand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://markthomas.info/blog/?p=66&#038;cpage=1#comment-72385</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 27 Dec 2012 16:25:45 +0000</pubDate>
		<guid isPermaLink="false">http://markthomas.info/blog/?p=66#comment-72385</guid>
		<description>Thanks, pretty clear explanation!</description>
		<content:encoded><![CDATA[<p>Thanks, pretty clear explanation!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scala: The Million Trait March&#8230; &#171; Statically Typed</title>
		<link>http://markthomas.info/blog/?p=66&#038;cpage=1#comment-22397</link>
		<dc:creator>Scala: The Million Trait March&#8230; &#171; Statically Typed</dc:creator>
		<pubDate>Sun, 25 Sep 2011 17:05:52 +0000</pubDate>
		<guid isPermaLink="false">http://markthomas.info/blog/?p=66#comment-22397</guid>
		<description>[...] Java and I&#8217;ve discovered it doesn&#8217;t have to.  Functions being first class citizens and structural typing (think duck typing on steroids) remove not only a ton of boilerplate but also the need to rely on [...]</description>
		<content:encoded><![CDATA[<p>[...] Java and I&#8217;ve discovered it doesn&#8217;t have to.  Functions being first class citizens and structural typing (think duck typing on steroids) remove not only a ton of boilerplate but also the need to rely on [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Szymon Je?</title>
		<link>http://markthomas.info/blog/?p=66&#038;cpage=1#comment-1453</link>
		<dc:creator>Szymon Je?</dc:creator>
		<pubDate>Tue, 18 Aug 2009 06:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://markthomas.info/blog/?p=66#comment-1453</guid>
		<description>Nice art.
I see that Scala compared to Ruby (which i currently use) is more type save for the price of writing some additional code, but still in an elegant way.

In Ruby duck typing is comparable. Ruby does not have the obligation and the ability to declare which methods must the method argument have.

Something like this:

def inTheForest(duck: Object) = { /* I mean Object as a wildcard */
  duck.quack
  duck.feathers
}

will work?

In Ruby it would look like this:

def inTheForest(duck)
  duck.quack
  duck.feathers
end</description>
		<content:encoded><![CDATA[<p>Nice art.<br />
I see that Scala compared to Ruby (which i currently use) is more type save for the price of writing some additional code, but still in an elegant way.</p>
<p>In Ruby duck typing is comparable. Ruby does not have the obligation and the ability to declare which methods must the method argument have.</p>
<p>Something like this:</p>
<p>def inTheForest(duck: Object) = { /* I mean Object as a wildcard */<br />
  duck.quack<br />
  duck.feathers<br />
}</p>
<p>will work?</p>
<p>In Ruby it would look like this:</p>
<p>def inTheForest(duck)<br />
  duck.quack<br />
  duck.feathers<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Recent Faves Tagged With "scala" : MyNetFaves</title>
		<link>http://markthomas.info/blog/?p=66&#038;cpage=1#comment-324</link>
		<dc:creator>Recent Faves Tagged With "scala" : MyNetFaves</dc:creator>
		<pubDate>Sat, 13 Dec 2008 02:20:42 +0000</pubDate>
		<guid isPermaLink="false">http://markthomas.info/blog/?p=66#comment-324</guid>
		<description>[...] public links &gt;&gt; scala    Revised Scala Exercises First saved by netzach2 &#124; 6 days ago      Type safe duck typing with Scala First saved by lax &#124; 21 days ago      Scala office screens First saved by macaroon02 &#124; 26 days ago  [...]</description>
		<content:encoded><![CDATA[<p>[...] public links &gt;&gt; scala    Revised Scala Exercises First saved by netzach2 | 6 days ago      Type safe duck typing with Scala First saved by lax | 21 days ago      Scala office screens First saved by macaroon02 | 26 days ago  [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
