Hacker News new | ask | show | jobs
by tantalor 5227 days ago
Can you elaborate? Honestly I think the differences far outweigh the similarities.

One case that comes to mind is how each language implements (what I call) the continuation pattern. Suppose you want to iterate over the vertices of a binary tree. In JavaScript, you would accept a callback parameter which you call with each vertex. In Python, you would yield each vertex to the caller. These are very different styles and lead you in different directions.