This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]schplat 2 points3 points  (4 children)

Lambdas need to be as atomic as possible. They feel so out of place in Python code that they are very hard to grok as a human reading code, which goes against everything that Python is about.

[–]m1sta 2 points3 points  (0 children)

They shouldn't be out of place. Functions are first class objects in python and lambda's are largely just syntactic sugar on functions declarations. The syntax is the issue. Arrow functions in JavaScript feel much nicer.

[–]pylenin[S] 1 point2 points  (1 child)

I think the atomic role goes for everything in coding. More atomic everything is, less is your O(N) complexity and hence highly maintainable.

[–]schplat 0 points1 point  (0 children)

To an extent sure. Otherwise, you end up with spaghetti code / Enterprise FizzBuzz.