A couple more questions: In strawman:simple_modules_examples - Remote modules on the web (1):
<script type=”harmony”> // loading from a URL module JSON = load 'http://json.org/modules/json2.js'; alert(JSON.stringify({'hi': 'world'})); </script> 1) Does - or must - the file json2.js contain only a single top level module declaration: module JSON { ...source... } (Can js source files contain multiple top level modules?) 2) If so, is the load statement equivalent to: <script type="harmony" src="http://json.org/modules/json2.js"></script> Apart from: - The script tag will make the module globally available to subsequent script tags. Whereas, the load form makes the module available only within the script tag load is called from. - the load form can parallelize the fetching and compilation of source more efficiently. -- _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

