Generators have some nice applications. Like iterators and such.
I wrote https://github.com/Floby/node-object-iterator to return a generator 
and it was sometimes a pain to keep states and such.

On Thursday, 28 March 2013 20:31:20 UTC+1, Ben Noordhuis wrote:
>
> On Thu, Mar 28, 2013 at 8:17 PM, cpprototypes 
> <[email protected]<javascript:>> 
> wrote: 
> > Source: http://code.google.com/p/v8/issues/detail?id=2355 
> > 
> > I think generators have the potential to greatly change how node.js code 
> is 
> > written (for example it could look like this http://taskjs.org). 
>  However, 
> > it depends on many factors: 
> > 
> > 1) How easy will it be to migrate existing node.js code?  It seems that 
> most 
> > of the community has decided that a simple async library 
> > (https://github.com/caolan/async) is good enough instead of promises. 
>  So it 
> > may be difficult to migrate that to something like tasks.js or anything 
> else 
> > using generators. 
> > 
> > 2) Since node.js developers are used to chaining callbacks and using 
> async 
> > library, there may be a lot of inertia to overcome before generators can 
> > have much impact. 
> > 
> > 3) What kind of impact, if any, will generators have on the core node.js 
> > API? 
>
> We won't be switching over right away, if that is what you mean. 
> We'll probably let user modules duke it out first, see what works and 
> what doesn't, then steal^Wuse that as a source of inspiration. 
>

-- 
-- 
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.


Reply via email to