Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.
simonox

DefineJS: ES6 Generator Syntax

Recently I wrote about Mehran Hatami’s define.js project, which is a lightweight AMD implementation. It has just been updated to support ES6 generators for loading modules, which means you can do this:

var module = yield require('module');

It’s still asynchronous, but it looks synchronous. I think this is a really cool use of generators, and apparently several people asked Mehran to implement this so it seems like there’s demand for it.

http://dailyjs.com/

Don't be the product, buy the product!

Schweinderl