3 ms·
Hello laktek, I really agree about the fact that node.js being from the ground up an evented environment got most libraries written in the same paradigm. On th
by antirez 16y ago
Hello laktek, I really agree about the fact that node.js being from the ground up an evented environment got most libraries written in the same paradigm.
On the other side I fail seeing how Javascript is a more event driven language compared to Ruby. In the context it's often used (the web browser) it supports callbacks, but not with some special semantic. Just callbacks, anonymous functions.
For this point of view I think that languages with coroutines are probably more powerful as event-driven programming languages, because it's possible to save the state across calls in a much more high level way, leading to code resembling a lot erlang code for instance.
Thanks!