I so agree with you Tim in this post in the previous one. 2013/8/6 Tim Caswell <[email protected]>
> In other words, he's worried programmers won't be aware that yield can > suspend you and shared mutable state can change while you're suspended. in fact this is one of the most useful things about generators, you have to think in yield as a partial return of something and YES everything can change between yields, you are returning at the middle of a function. It is not about promises only and it has nothing to do with what kind of thing do you yield, you can yield numbers and still screw mutable state. 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. -- -- 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.
