My rule is to not use anything that's behind a flag in libraries. But I do use things like generators in my applications that consume libraries. I also use generators in my examples and README's because it's so much cleaner.
I've been using continuables heavily in place of callback-last APIs because they are both usable with callbacks and generator helpers like "gen-run" and "co". JS-Git is a great example of this. The library is completely usable without any ES6 features, but it's even nicer when you do have them. https://github.com/creationix/git-repo/blob/master/example/create.js -Tim Caswell On Tue, Jul 2, 2013 at 10:41 AM, Alan Gutierrez <[email protected]>wrote: > Is it time to start using ES6 in Node.js libraries hosted on NPM? Or is ES6 > going to be the new CoffeeScript? > > -- > Alan Gutierrez ~ @bigeasy > > -- > -- > 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > 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 [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
