<?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"
	>
<channel>
	<title>Comments on: Erlang eval and dynamic dispatch</title>
	<atom:link href="http://nutrun.com/weblog/erlang-eval-and-dynamic-dispatch/feed/" rel="self" type="application/rss+xml" />
	<link>http://nutrun.com/weblog/erlang-eval-and-dynamic-dispatch/</link>
	<description>nutrun</description>
	<pubDate>Sat, 06 Sep 2008 04:32:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: links for 2008-05-20 &#171; Bloggitation</title>
		<link>http://nutrun.com/weblog/erlang-eval-and-dynamic-dispatch/#comment-885</link>
		<dc:creator>links for 2008-05-20 &#171; Bloggitation</dc:creator>
		<pubDate>Tue, 20 May 2008 00:27:23 +0000</pubDate>
		<guid isPermaLink="false">http://nutrun.com/?p=141#comment-885</guid>
		<description>[...] Erlang eval and dynamic dispatch (tags: erlang programming) [...]</description>
		<content:encoded><![CDATA[<p>[...] Erlang eval and dynamic dispatch (tags: erlang programming) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Smith</title>
		<link>http://nutrun.com/weblog/erlang-eval-and-dynamic-dispatch/#comment-876</link>
		<dc:creator>Kevin Smith</dc:creator>
		<pubDate>Sun, 18 May 2008 13:19:30 +0000</pubDate>
		<guid isPermaLink="false">http://nutrun.com/?p=141#comment-876</guid>
		<description>I get what you're doing but outside of the novelty factor, I don't really see why this is useful. You can get largely the same behavior using regular pattern matching and guards:

-module(test).

-compile([export_all]).

hello() -&#62;
  "hello, world".

hello(Who) when is_list(Who) -&#62;
  "hello, " ++ Who.
----

1&#62; M = test.
test
2&#62; F = hello.
hello
3&#62; M:F().
"hello, world"
4&#62; M:F("Kevin").
"hello, Kevin"
5&#62;</description>
		<content:encoded><![CDATA[<p>I get what you&#8217;re doing but outside of the novelty factor, I don&#8217;t really see why this is useful. You can get largely the same behavior using regular pattern matching and guards:</p>
<p>-module(test).</p>
<p>-compile([export_all]).</p>
<p>hello() -&gt;<br />
  &#8220;hello, world&#8221;.</p>
<p>hello(Who) when is_list(Who) -&gt;<br />
  &#8220;hello, &#8221; ++ Who.<br />
&#8212;-</p>
<p>1&gt; M = test.<br />
test<br />
2&gt; F = hello.<br />
hello<br />
3&gt; M:F().<br />
&#8220;hello, world&#8221;<br />
4&gt; M:F(&#8221;Kevin&#8221;).<br />
&#8220;hello, Kevin&#8221;<br />
5&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
