Re:C++14 lambda tutorial
by rbonvall on Thursday August 28, 2014 @12:25PM
(#8238054)
While I see the use for multi-statement lambdas, and I use them all the time in {Java,Coffee}Script, they are rarely needed in Python as there is always a more idiomatic way to write the code. In particular, with for loops and generator expressions (~list comprehensions) you can cover almost all uses of .each, .map, .filter, .some (`any` in Python), .every (`all` in Python), etc.
[ Parent
| on HN ]
There are no comments on this comment yet.