2012/9/27 Bernardo Dal Seno <bdals...@google.com>:
> On Thu, Sep 27, 2012 at 2:12 PM, Iustin Pop <ius...@google.com> wrote:
>> Explicit loops, like explicit recursion, encode instruction rather than
>> intent; as such, "everything else being equal" it's better to use
>> abstractions rather than explicit loops. Use "any/all" instead of
>> explicitly iterating over lists, use fold/reduce instead of manually
>> recursing, etc.
>
> That's a very good explanation, thank you.
>
>> However, I don't know if in this particular case everything else _is_
>> equal.
>
> Maybe there is a small overhead, but the code is more clear.
>
>
> Interdiff:

LGTM, thank you very much!

Michael

Reply via email to