<?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: Heads and Tails in Functional Programming</title>
	<atom:link href="http://www.youell.com/matt/writing/?feed=rss2&#038;p=101" rel="self" type="application/rss+xml" />
	<link>http://www.youell.com/matt/writing/?p=101</link>
	<description>simplify</description>
	<lastBuildDate>Wed, 31 Oct 2018 04:08:37 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: matt</title>
		<link>http://www.youell.com/matt/writing/?p=101&#038;cpage=1#comment-204</link>
		<dc:creator>matt</dc:creator>
		<pubDate>Mon, 05 Jan 2009 19:50:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.youell.com/matt/writing/?p=101#comment-204</guid>
		<description>@Fredrik and @Robert - Thanks pointing out hd and tl. If we were talking only Erlang, that would be fine, although I think in this case the pattern matching makes the code more clear. I used Erlang as the example language but I was playing around to find a syntactic way of handling the common cases in any language. Or better said, an imaginary language. Blub, if you like. &lt;g&gt; 

Shortness itself I&#039;m not too worried about. I was thinking in more linguistic terms, where you might change a word ending a little bit and it gets a modified meaning. I think that&#039;s why the Perlish solution spoke to me.

However, with all of that said, I don&#039;t tend to like symbolic crap in my code. I tolerate it in Perl because it gets me something (meaningful context), but I roll my eyes where it is used as an affectation, like in Ruby or PHP. 

So in short, I think this idea of mine is kind of dumb. But it&#039;s still fun to play with!</description>
		<content:encoded><![CDATA[<p>@Fredrik and @Robert &#8211; Thanks pointing out hd and tl. If we were talking only Erlang, that would be fine, although I think in this case the pattern matching makes the code more clear. I used Erlang as the example language but I was playing around to find a syntactic way of handling the common cases in any language. Or better said, an imaginary language. Blub, if you like. <g> </p>
<p>Shortness itself I&#8217;m not too worried about. I was thinking in more linguistic terms, where you might change a word ending a little bit and it gets a modified meaning. I think that&#8217;s why the Perlish solution spoke to me.</p>
<p>However, with all of that said, I don&#8217;t tend to like symbolic crap in my code. I tolerate it in Perl because it gets me something (meaningful context), but I roll my eyes where it is used as an affectation, like in Ruby or PHP. </p>
<p>So in short, I think this idea of mine is kind of dumb. But it&#8217;s still fun to play with!</g></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Virding</title>
		<link>http://www.youell.com/matt/writing/?p=101&#038;cpage=1#comment-203</link>
		<dc:creator>Robert Virding</dc:creator>
		<pubDate>Mon, 05 Jan 2009 15:49:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.youell.com/matt/writing/?p=101#comment-203</guid>
		<description>There are some built-in functions for getting the head an tail of a list without pulling it apart with pattern matching, hd/1 and tl/1. So:

List = [1,2,3,4],
hd(List) ==&gt; 1
tl(List) ==&gt; [2,3,4]

Also you have the module lists which contains *LOTS* of functions for working with lists.</description>
		<content:encoded><![CDATA[<p>There are some built-in functions for getting the head an tail of a list without pulling it apart with pattern matching, hd/1 and tl/1. So:</p>
<p>List = [1,2,3,4],<br />
hd(List) ==&gt; 1<br />
tl(List) ==&gt; [2,3,4]</p>
<p>Also you have the module lists which contains *LOTS* of functions for working with lists.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fredrik</title>
		<link>http://www.youell.com/matt/writing/?p=101&#038;cpage=1#comment-202</link>
		<dc:creator>Fredrik</dc:creator>
		<pubDate>Mon, 05 Jan 2009 15:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.youell.com/matt/writing/?p=101#comment-202</guid>
		<description>You could always use hd(List) and tl(List). It is not a graphic notation admittedly, but almost as short. Also, it is easier to remember than $#@^ for those who have a short memory for symbols.</description>
		<content:encoded><![CDATA[<p>You could always use hd(List) and tl(List). It is not a graphic notation admittedly, but almost as short. Also, it is easier to remember than $#@^ for those who have a short memory for symbols.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
