News for hackers. Stuff that matters.
Re:What's so great about JavaScript Promises? by shardling on Tuesday January 29, 2013 @04:15PM (#5136340)
If for some reason you end up writing javascript that only needs to run on Firefox, you do get coroutines via the yield keyword. Pretty sure it will also appear in a future version of javascript.

https://developer.mozilla.org/en-US/docs/JavaScript/New_in_J...

Re:What's so great about JavaScript Promises? by Sephr on Wednesday January 30, 2013 @08:20AM (#5139310)
I wrote a library that adds support for this using yield: http://eligrey.com/blog/post/pausing-javascript-with-async-j...
Re:What's so great about JavaScript Promises? by willvarfar on Wednesday January 30, 2013 @04:03AM (#5138695)
Ah the lament that Chrome doesn't do yield, list comprehensions etc. Why, JS 1.7 looks almost like Python!