On Thu, Feb 19, 2015 at 4:57 PM, Dylan Baker <[email protected]> wrote:
> I am however adamant that if we're using filter and map together a
> comprehension is much more readable.
>
> [f(x) for x in a_list if x is not None]
> is much more readable than
> filter(map(f, a_list), lambda x: x is not None)

Yeah, the second lambda's get involved, it's basically over (for
readability). Or the second you start chaining.
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to