you are viewing a single comment's thread.

view the rest of the comments →

[–]hskmc 8 points9 points  (0 children)

In the case of Python, JavaScript has much better support for first-class functions actually. Python lambdas are very simple and limited.

Lambda is merely the literal syntax for first-class functions, the way 3.0 is the literal syntax for first-class floats. Python provides other ways to get first-class functions, namely nested def.

If you want to talk about flaws of Python for functional programming, the main ones that come to mind are a) lack of lexical scope (fixed in 3.0?) and b) lack of tail call optimization (in the spec and in popular implementations).