+1<br><br><div class="gmail_quote">On Sun, Oct 14, 2012 at 7:58 PM, Conrad Parker <span dir="ltr">&lt;<a href="mailto:conrad@metadecks.org" target="_blank">conrad@metadecks.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 15 October 2012 03:28, Simon Hengel &lt;<a href="mailto:sol@typeful.net">sol@typeful.net</a>&gt; wrote:<br>
&gt; On Sun, Oct 14, 2012 at 09:00:18PM +0200, Gábor Lehel wrote:<br>
&gt;&gt; On Sun, Oct 14, 2012 at 8:47 PM, Dan Burton &lt;<a href="mailto:danburton.email@gmail.com">danburton.email@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; At the risk of useless bikeshedding... might I suggest &quot;r&quot; as a mnemonic for<br>
&gt;&gt; &gt; &quot;result&quot;?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; foldl :: (a -&gt; r -&gt; r) -&gt; r -&gt; [a] -&gt; r<br>
&gt;&gt; &gt; foldr :: (r -&gt; a -&gt; r) -&gt; r -&gt; [a] -&gt; r<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; -- Dan Burton<br>
&gt;&gt;<br>
&gt;&gt; &#39;r&#39; is the version I originally used myself (see reddit). But then you<br>
&gt;&gt; have to change the foldrs too, and quite possibly a lot of other<br>
&gt;&gt; functions, and get dragged into a big discussion over when is &#39;r&#39; a<br>
&gt;&gt; better mnemonic than &#39;b&#39; and when is it not.<br>
&gt;&gt;<br>
&gt;&gt; Simply swapping &#39;a&#39; and &#39;b&#39; in the left folds captures most of the<br>
&gt;&gt; benefit for least cost.<br>
&gt;&gt;<br>
&gt;&gt; Same goes for most of the other suggestions I have seen (I don&#39;t find<br>
&gt;&gt; the existing signatures actively confusing, merely suboptimal), but if<br>
&gt;&gt; sentiment is overwhelmingly in favor of making further changes I can<br>
&gt;&gt; be swayed. For now I wanted to propose a minimal change with the best<br>
&gt;&gt; chance of attracting a broad consensus.<br>
&gt;<br>
&gt; I&#39;m in favor of the simple change, so +1 ;)<br>
<br>
</div>+1<br>
<span class="HOEnZb"><font color="#888888"><br>
Conrad.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/libraries" target="_blank">http://www.haskell.org/mailman/listinfo/libraries</a><br>
</div></div></blockquote></div><br>