Need just a bit more time to work through some module details work. I get back from Strange Loop mid-week and hope to really start tackling module work in earnest next week.
Dave On Sep 24, 2012, at 12:02 PM, Jussi Kalliokoski <[email protected]> wrote: > I find this interesting as well, because I've been thinking of creating Yet > Another(TM) module loader, which would be a standalone polyfill for Harmony > modules. > > While we're at it, a few questions I've been wondering: > * Is it possible to have modules that don't export *anything*? I suppose > this would allow existing scripts like jQuery to work out of the box, if they > tie their exports to the window object, then just do `import "jquery.js"` or > `import * from "jquery.js"` if necessary. > * If there's a cross-compilation hook on the loader, does the dependency > resolving happen before or after the compilation? Former is more efficient, > but places constraints on the compile-to-JS languages. > * Is there a way to do async cross-compilation with the hooks? e.g. offload > parsing and everything to a worker to keep the main thread responsive? > * Is it possible to import things to local scope? For example, is this a > syntax error, and if not, what happens: `function x () { import y from x }` > > Cheers, > Jussi > > On Mon, Sep 24, 2012 at 5:00 PM, Aron Homberg <[email protected]> wrote: > Hi all, > > I found that the recent draft / harmony PDF doesn't include a specification > of the import syntax and > just wanna ask if the following wiki pages in (harmony namespace) reflect the > current state of discussion > and if there are big changes to expect in the future regarding this: > > http://wiki.ecmascript.org/doku.php?id=harmony:modules_examples&s=import > > If it's relatively "stable" I would start prototyping the import syntax in my > Traceur clone. > > Thanks and regards, > Aron > > > > > > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss > > > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

