<?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: Data Transformation and Language Syntax</title>
	<atom:link href="http://www.magpiebrain.com/2010/01/10/data-transformation-and-language-syntax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.magpiebrain.com/2010/01/10/data-transformation-and-language-syntax/</link>
	<description>The blog of Sam Newman</description>
	<lastBuildDate>Mon, 19 Jul 2010 18:05:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Ben Butler-Cole</title>
		<link>http://www.magpiebrain.com/2010/01/10/data-transformation-and-language-syntax/comment-page-1/#comment-4641</link>
		<dc:creator>Ben Butler-Cole</dc:creator>
		<pubDate>Mon, 11 Jan 2010 08:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/?p=648#comment-4641</guid>
		<description>The standard is Haskell is to do right-to-left function composition like this:

normalize = internationalize . addAreaCode . stripSpaces

You do soon get used to reading these. However there is also a left-to-right composition operator, like this:

normalize = stripSpaces &gt;&gt;&gt; addAreaCode &gt;&gt;&gt; internationalize

Ben</description>
		<content:encoded><![CDATA[<p>The standard is Haskell is to do right-to-left function composition like this:</p>
<p>normalize = internationalize . addAreaCode . stripSpaces</p>
<p>You do soon get used to reading these. However there is also a left-to-right composition operator, like this:</p>
<p>normalize = stripSpaces &gt;&gt;&gt; addAreaCode &gt;&gt;&gt; internationalize</p>
<p>Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt von Rohr</title>
		<link>http://www.magpiebrain.com/2010/01/10/data-transformation-and-language-syntax/comment-page-1/#comment-4627</link>
		<dc:creator>Matt von Rohr</dc:creator>
		<pubDate>Sun, 10 Jan 2010 21:43:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/?p=648#comment-4627</guid>
		<description>try &quot;-&gt;&quot; macro, it threads your expression through a chain of function calls, regardless of the return values. http://exploringclojure.blogspot.com/2010/01/function-chaining.html</description>
		<content:encoded><![CDATA[<p>try &#8220;-&gt;&#8221; macro, it threads your expression through a chain of function calls, regardless of the return values. <a href="http://exploringclojure.blogspot.com/2010/01/function-chaining.html" rel="nofollow">http://exploringclojure.blogspot.com/2010/01/function-chaining.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Newman</title>
		<link>http://www.magpiebrain.com/2010/01/10/data-transformation-and-language-syntax/comment-page-1/#comment-4610</link>
		<dc:creator>Sam Newman</dc:creator>
		<pubDate>Sun, 10 Jan 2010 18:49:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/?p=648#comment-4610</guid>
		<description>Ola: I&#039;d really want to pass around whatever the functions return, rather than limiting myself to a raw string. Which I&#039;d imagine limits me to a language with dynamic typing, or else jumping through lots of hoops getting a sufficiently advanced static typing system to be happy with it.   

Mark: I think comp still works right to left from my reading of the docs.</description>
		<content:encoded><![CDATA[<p>Ola: I&#8217;d really want to pass around whatever the functions return, rather than limiting myself to a raw string. Which I&#8217;d imagine limits me to a language with dynamic typing, or else jumping through lots of hoops getting a sufficiently advanced static typing system to be happy with it.   </p>
<p>Mark: I think comp still works right to left from my reading of the docs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Needahm</title>
		<link>http://www.magpiebrain.com/2010/01/10/data-transformation-and-language-syntax/comment-page-1/#comment-4609</link>
		<dc:creator>Mark Needahm</dc:creator>
		<pubDate>Sun, 10 Jan 2010 18:41:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/?p=648#comment-4609</guid>
		<description>So if I understand correctly what you want to do is compose several functions together in the order in which they&#039;re executed against the input?

If so could you make use of the &#039;comp&#039; function in Clojure or is that the wrong way around which is what I&#039;m maybe thinking after reading the docs again - http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/comp - ?</description>
		<content:encoded><![CDATA[<p>So if I understand correctly what you want to do is compose several functions together in the order in which they&#8217;re executed against the input?</p>
<p>If so could you make use of the &#8216;comp&#8217; function in Clojure or is that the wrong way around which is what I&#8217;m maybe thinking after reading the docs again &#8211; <a href="http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/comp" rel="nofollow">http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/comp</a> &#8211; ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ola Bini</title>
		<link>http://www.magpiebrain.com/2010/01/10/data-transformation-and-language-syntax/comment-page-1/#comment-4608</link>
		<dc:creator>Ola Bini</dc:creator>
		<pubDate>Sun, 10 Jan 2010 18:39:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/?p=648#comment-4608</guid>
		<description>Ioke could definitely do it, although I don&#039;t have an operator for it right now. I&#039;ve considered adding it, though. I would probably not send around raw strings - so if you assume you have something else, you can simply do it like this, where the three methods are defined on PhoneNumberText

  PhoneNumberText from(&quot;44 1230 9183&quot;) stripSpaces addAreaCode internationalize

F# have a serialization construct with the &#124;&gt; operator. You can also use &lt;&#124; for it. Take a look in Needhams blog for a number of examples.</description>
		<content:encoded><![CDATA[<p>Ioke could definitely do it, although I don&#8217;t have an operator for it right now. I&#8217;ve considered adding it, though. I would probably not send around raw strings &#8211; so if you assume you have something else, you can simply do it like this, where the three methods are defined on PhoneNumberText</p>
<p>  PhoneNumberText from(&#8220;44 1230 9183&#8243;) stripSpaces addAreaCode internationalize</p>
<p>F# have a serialization construct with the |&gt; operator. You can also use &lt;| for it. Take a look in Needhams blog for a number of examples.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
