Nathan Breit (2013-12-01T23:01:07.000Z)
After seeing the task.js library it struck me that the same approach could
also be used used to import modules. For example:

let JSON = yield load('http://json.org/modules/json2.js');

This provides some of the benefits of the new module syntax; there is no
need to wrap everything in a function, and imported variables can be
defined inline with their library path for easy copy/pasting. However, the
new syntax has other benefits this approach doesn't such as readability and
it might interfere with concurrent loading/pre-fetching.

-Nathan Breit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131201/045c955b/attachment.html>
domenic at domenicdenicola.com (2013-12-10T01:10:16.011Z)
After seeing the task.js library it struck me that the same approach could
also be used used to import modules. For example:

```js
let JSON = yield load('http://json.org/modules/json2.js');
```

This provides some of the benefits of the new module syntax; there is no
need to wrap everything in a function, and imported variables can be
defined inline with their library path for easy copy/pasting. However, the
new syntax has other benefits this approach doesn't such as readability and
it might interfere with concurrent loading/pre-fetching.