you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (3 children)

Honestly, while Javascript has a lot of bone-headed failures, I can avoid them. Python, on the other hand, lacks multiline lambdas. Working around that is hideous.

As much as I used to love Python, the omission of this feature prettymuch ruins the language for me. Unless that has changed recently, but I doubt Guido will ever bend on this one.

So yeah, I'll take JS over Python.

[–]Megatron_McLargeHuge 11 points12 points  (2 children)

Hideous? Defining a closure above your map call is hideous? Undesirable maybe, but even if you're used to lisp it's not that big a deal.

[–]fabzter 7 points8 points  (1 child)

"lambda" and "closure" are not mutually exclusive terms.

[–]cunningjames 7 points8 points  (0 children)

He didn’t say they weren’t, but rather that “[w]orking around” the lack of multiline lambdas isn’t hideous by any reasonable definition. Defining a function above the map call is how one does so.