Tuesday, August 20, 2013

YIELD!

Lcfvs pointed me in the direction of yld, a very cool-looking Node.js package. No wonder, it's his own creation. Here's what he says about it:

Contrary to promises, where developers add functions and disorganize their code, yld allows you to execute instructions linearly.

Each yield pauses the process and allows to retrieve a response from another function ... this is comparable to promise.then().

This programming method avoids to pass the variables from scope to scope, to handle the response.

If you have already tried to use JavaScript asynchonously, you have certainly thought about some answers to these issues.

Sounds good to me!

No comments:

Post a Comment