3 ms·
This is ridiculous. I love python, but it has no language support for an event loop, and if you put it in a browser, everything would have to be done in an even
by mhansen 15y ago
This is ridiculous. I love python, but it has no language support for an event loop, and if you put it in a browser, everything would have to be done in an event loop. It'd be ugly.
Javascript excels at evented programming. Use the right tool for the job.
- Yaggo 15y agoI was just going to comment that at least Python has yield (generators) which helps to avoid callback spaghetti¹, but Javascript seems to have got it too in 1.7². [1] http://www.tornadoweb.org/documentation/gen.html http://www.tornadoweb.org/documentation/gen.html [2] https://developer.mozilla.org/en/New_in_JavaScript_1.7#Generators https://developer.mozilla.org/en/New_in_JavaScript_1.7#Gener...