Thanks for the feedback! It seems to have all the right ingredients to be loved or loathed, so we'll see which it is...
I'm particularly anxious for destructuring assignment to be implemented. Single line, zero-callback async without the array hackiness should really go a long way. I also like the fact that you don't lose the "Hey, IO happens here!" syntactic indicator you get from callbacks, since the yield expression can serve the same purpose. ES6 (and beyond) is definitely offering some promising features with regards to code elegance. Glad to see the V8 team moving forward so fast once the specs hit draft :) On Tuesday, May 28, 2013 10:20:06 AM UTC-4, jmar777 wrote: > > *suspend* <https://github.com/jmar777/suspend> is a new control flow > library that exposes a minimal API around* ES6 generators*, and is > expressly designed to work transparently with Node's existing callback > conventions. This allows unobtrusive use of *yield* execution semantics > that works seamlessly with existing Node code bases (no need to wrap > everything in a promises/whatever layer). > > *Quick example:* > * > * > var suspend = require('suspend'), > fs = require('fs'); > > suspend(function* (resume) { > var data = yield fs.readFile(__filename, resume); > console.log(data[1].toString('utf8')); > })(); > > *Links:* GitHub Repo <https://github.com/jmar777/suspend> | Blog > Announcement<http://devsmash.com/blog/suspend-generator-based-control-flow-for-node> > > *NPM: *$ npm install suspend > > *suspend* is extremely experimental, and I would greatly appreciate any > feedback! > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.