It&#39;s a matter of taste.&nbsp; I prefer the function composition in this case.<br>It reads nicely as a pipeline.<br><br>&nbsp; -- Lennart<br><br><div class="gmail_quote">On Fri, Feb 1, 2008 at 9:48 PM, Dan Licata &lt;<a href="mailto:drl@cs.cmu.edu">drl@cs.cmu.edu</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Not to start a flame war or religious debate, but I don&#39;t think that<br>
eta-expansions should be considered bad style. &nbsp;I realize that<br>
composition-style is good for certain types of reasoning, but fully<br>
eta-expanded code has an important legibility advantage: you can tell<br>
the shape of its type just by looking at it! &nbsp;Personally, I&#39;d rather<br>
read the original version.<br>
<font color="#888888"><br>
-Dan<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Feb01, Derek Elkins wrote:<br>
&gt; On Fri, 2008-02-01 at 00:09 -0500, Cale Gibbard wrote:<br>
&gt; &gt; Hello,<br>
&gt; &gt;<br>
&gt; &gt; Today on #haskell, resiak was asking about a clean way to write the<br>
&gt; &gt; function which allocates an array of CStrings using withCString and<br>
&gt; &gt; withArray0 to produce a new with* style function. I came up with the<br>
&gt; &gt; following:<br>
&gt; &gt;<br>
&gt; &gt; nest :: [(r -&gt; a) -&gt; a] -&gt; ([r] -&gt; a) -&gt; a<br>
&gt; &gt; nest xs = runCont (sequence (map Cont xs))<br>
&gt;<br>
&gt; This is what you write after all that time on #haskell?<br>
&gt;<br>
&gt; nest = runCont . sequence . map Cont<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Haskell-Cafe mailing list<br>
&gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
&gt;<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br>