<?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: Control structures, in my functional language?</title>
	<atom:link href="http://blog.theprodigalboyfriend.com/2009/04/17/control-structures-in-my-functional-language/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.theprodigalboyfriend.com/2009/04/17/control-structures-in-my-functional-language/</link>
	<description>Why are you even reading this?</description>
	<lastBuildDate>Thu, 21 Jan 2010 08:38:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Ryan</title>
		<link>http://blog.theprodigalboyfriend.com/2009/04/17/control-structures-in-my-functional-language/comment-page-1/#comment-2309</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Sun, 19 Apr 2009 13:35:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.theprodigalboyfriend.com/?p=322#comment-2309</guid>
		<description>I&#039;m not sure if String is sealed in Java or not.  More my complaint is that rather than:
&lt;pre lang=&quot;scala&quot;&gt;
for (line &lt;- lines) {
   length = line.length.toString.length
}&lt;/pre&gt;
It should be something like:
&lt;pre lang=&quot;haskell&quot;&gt;
map (\x -&gt; foldr (const (+1) 0) lines&lt;/pre&gt;
Using and abusing abstracts and generics is one thing, but neither should be necessary in a functional language.  Seriously.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure if String is sealed in Java or not.  More my complaint is that rather than:</p>

<div class="wp_syntax"><div class="code"><pre class="scala" style="font-family:monospace;"><span style="color: #0000ff; font-weight: bold;">for</span> <span style="color: #F78811;">&#40;</span>line <span style="color: #000080;">&lt;</span>- lines<span style="color: #F78811;">&#41;</span> <span style="color: #F78811;">&#123;</span>
   length <span style="color: #000080;">=</span> line.<span style="color: #000000;">length</span>.<span style="color: #000000;">toString</span>.<span style="color: #000000;">length</span>
<span style="color: #F78811;">&#125;</span></pre></div></div>

<p>It should be something like:</p>

<div class="wp_syntax"><div class="code"><pre class="haskell" style="font-family:monospace;"><span style="font-weight: bold;">map</span> <span style="color: green;">&#40;</span>\x <span style="color: #339933; font-weight: bold;">-&gt;</span> <span style="font-weight: bold;">foldr</span> <span style="color: green;">&#40;</span><span style="font-weight: bold;">const</span> <span style="color: green;">&#40;</span><span style="color: #339933; font-weight: bold;">+</span><span style="color: red;">1</span><span style="color: green;">&#41;</span> <span style="color: red;">0</span><span style="color: green;">&#41;</span> <span style="font-weight: bold;">lines</span></pre></div></div>

<p>Using and abusing abstracts and generics is one thing, but neither should be necessary in a functional language.  Seriously.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://blog.theprodigalboyfriend.com/2009/04/17/control-structures-in-my-functional-language/comment-page-1/#comment-2308</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Sun, 19 Apr 2009 06:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.theprodigalboyfriend.com/?p=322#comment-2308</guid>
		<description>public abstract String : String
{
     String Align()
     {
         return this.Length.ToString().Length;
     }
}

Done, right? Use and abuse abstracts and generics to make your life easier. If you find yourself typing the same deeply nested statement like that over and over again, redefine it to make it more readable.</description>
		<content:encoded><![CDATA[<p>public abstract String : String<br />
{<br />
     String Align()<br />
     {<br />
         return this.Length.ToString().Length;<br />
     }<br />
}</p>
<p>Done, right? Use and abuse abstracts and generics to make your life easier. If you find yourself typing the same deeply nested statement like that over and over again, redefine it to make it more readable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Missy</title>
		<link>http://blog.theprodigalboyfriend.com/2009/04/17/control-structures-in-my-functional-language/comment-page-1/#comment-2307</link>
		<dc:creator>Missy</dc:creator>
		<pubDate>Sun, 19 Apr 2009 06:03:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.theprodigalboyfriend.com/?p=322#comment-2307</guid>
		<description>Uhm.. TLDNR?  Or would that be TT(echnical)DNR?

Play WoW.</description>
		<content:encoded><![CDATA[<p>Uhm.. TLDNR?  Or would that be TT(echnical)DNR?</p>
<p>Play WoW.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
