On Aug 7, 2013, at 08:39, José F. Romaniello wrote: > The only problem here is if you use yield and you don't understand what will > happen, in the same way you can misuse any language construct without. > > Move on this is a SOLVED PROBLEM, we have had this thing in many programming > languages for decades and any mediocre software developer know what yield > means at the middle of a function.
I consider myself a pretty good software developer with something around 25 years of experience with various languages, and I had not been aware of "yield" until this thread. (But I suppose that fits José's point: since I didn't know "yield" it would not have occurred to me to try to use it, so there wouldn't be a problem.) Thanks to the "gentle introduction to generators" posted by Gorgi, I think I now have a somewhat muddy understand how they work, but I'll stick with callbacks for now since I already understand them and know they'll work in any JavaScript environment my code might have to run in. -- -- 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.
