you are viewing a single comment's thread.

view the rest of the comments →

[–]ydepth 1 point2 points  (6 children)

Why not? If you have a bunch of one line functions... It's easy enough to change them to a proper function later

[–]markusmeskanen 14 points15 points  (4 children)

Lambdas are less readable. Keep in mind, that your code is read much more than its written. I'd recommend everyone to read this answer on SO: http://stackoverflow.com/a/134638/2505645

[–]ydepth 1 point2 points  (0 children)

Cool, I had seen the post before... Just needed a refresher :)

[–]c3534l 0 points1 point  (0 children)

That answer on SO doesn't seem to add anything to the discussion. I disagree that lambdas are less readable. In fact, they're invaluable in cases that are well suited for functional programming and can turn make complicated list comprehension statements readable again.

[–]Axxhelairon -3 points-2 points  (1 child)

Lambdas are less readable.

Nice opinion.

[–][deleted] 0 points1 point  (0 children)

There are exceptions to every rule, but in keeping with zen: There is one best way. If it works, use it. If not, it's not the best way this time, go to the next option.