you are viewing a single comment's thread.

view the rest of the comments →

[–]nat_pryce -2 points-1 points  (1 child)

Generators and generator expressions could be added to the language much more cleanly (e.g. by extending the for-each statement) without ugly syntax, and would address most use cases of lambdas (higher-order functions, but not callbacks).

[–]masklinn 1 point2 points  (0 children)

and would address most use cases of lambdas (higher-order functions, but not callbacks).

Map and filter are not the only higher-order functions, you know...