+1<br><br><div class="gmail_quote">On Sun, Oct 14, 2012 at 7:58 PM, Conrad Parker <span dir="ltr"><<a href="mailto:conrad@metadecks.org" target="_blank">conrad@metadecks.org</a>></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 <<a href="mailto:sol@typeful.net">sol@typeful.net</a>> wrote:<br>
> On Sun, Oct 14, 2012 at 09:00:18PM +0200, Gábor Lehel wrote:<br>
>> On Sun, Oct 14, 2012 at 8:47 PM, Dan Burton <<a href="mailto:danburton.email@gmail.com">danburton.email@gmail.com</a>> wrote:<br>
>> > At the risk of useless bikeshedding... might I suggest "r" as a mnemonic for<br>
>> > "result"?<br>
>> ><br>
>> > foldl :: (a -> r -> r) -> r -> [a] -> r<br>
>> > foldr :: (r -> a -> r) -> r -> [a] -> r<br>
>> ><br>
>> > -- Dan Burton<br>
>><br>
>> 'r' is the version I originally used myself (see reddit). But then you<br>
>> have to change the foldrs too, and quite possibly a lot of other<br>
>> functions, and get dragged into a big discussion over when is 'r' a<br>
>> better mnemonic than 'b' and when is it not.<br>
>><br>
>> Simply swapping 'a' and 'b' in the left folds captures most of the<br>
>> benefit for least cost.<br>
>><br>
>> Same goes for most of the other suggestions I have seen (I don't find<br>
>> the existing signatures actively confusing, merely suboptimal), but if<br>
>> sentiment is overwhelmingly in favor of making further changes I can<br>
>> be swayed. For now I wanted to propose a minimal change with the best<br>
>> chance of attracting a broad consensus.<br>
><br>
> I'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>