>  The general idea being that there is no reason to be "clever" for no
> reason, esp. as we have to do that too often anyway.

#2 and #3 are easier to read than #1 because you don't
have to match two 'foo' references that are 3 lines apart.

#2 is almost always better than #3 because it's shorter 
(implicit lambdas), and more flexible (free 'map').

#3 is fine for 'filter(func, list)', as it eliminates 
redundant 'item for item in'.

#1 might sometimes be preferable when you need statements to 
evaluate 'x' or 'y', but don't want to wrap it in a function.

--
Zdenek
_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to