|
|
|
|
|
by greener_grass
638 days ago
|
|
> Aside from the definition itself not being usable inline, there is nothing lambda does that def doesn't Being unable to position it inline is the problem. You might not see the benefit, but many do. It prevents Python from being a good functional programming, for one thing. |
|
Python is a primarily OOP-based language with functional aspects. And the design decisions that went into it are what makes it so popular today. It's not Haskell or Lisp or any of the other many that the majority avoid due to language complexity. Don't try to make it into one.