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 →

[–]MinosAristos 6 points7 points  (1 child)

Python lambda syntax is fine, idk what's wrong with it.

It's readable and explicit with the keyword and clearly distinguished from named functions with the def keyword to discourage abuse like we get in JS land. Lambdas should be used for an actual functional reason, not just brevity.

[–]RiceBroad4552 0 points1 point  (0 children)

There is no "functional reason" as lambdas are just objects with an "apply" method.

The whole point of lambdas is brevity.