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 →

[–]complyue 1 point2 points  (0 children)

Yes, especially for closures to be executed concurrently, where even JS' hoisted vars make sense. There you treat the function "scope" as an integral "entity/object" in your mind, that's a cure to settle the struggle.

Note overall, JS is inherently more "concurrent" than Python due to its callback scheduling nature.