4 ms·
JavaScript needs coroutines. They would solve a lot of problems.
by nathansobo 16y ago
JavaScript needs coroutines. They would solve a lot of problems.
- icey 16y agoThey won't be coming in node.js: http://twitter.com/#!/ryah/status/25685501193232384 http://twitter.com/#!/ryah/status/25685501193232384
- silentbicycle 16y agoBut, why not? I've done web programming in Lua (w/ WSAPI); Lua is generally like Javascript's non-glue-huffing older brother, and coroutines/iterators remove a LOT of issues. I was working on an event-loop-based web server+framework in Lua, but then I got into Erlang and realized how utterly lost the whole endeavor was. (But who wants to program in Erlang? I hear it's bad at strings, or something.)