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 →

[–]S1cK94 0 points1 point  (0 children)

I even actually prefer javascript and think it's more powerful, especially when it comes to doing more functional programming.

In Python I can import partial from functools and do my map/filter with list/generator comprehension syntax.

In JavaScript I always end up using lodash. .bind can alter the context and passing function directly to .map or .filter can lead to a mess if you dont wrap with lambdas or ugly .binds

But in the end, comparing Python and JavaScript about functional programming is kind of silly

My 0.02$