-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Another idea that might provide the extensibility to deal with loading
various resources and alternate/older modules, what if we added the
ability to specify the loader to use for a module:
module myApp {
module Template = load "template.html" with "text-loader.js"; //
load a template text
module Messages = load "messages.json" with "i18n.js"; // load some
messages
module OldModule = load "old-module.js" with "commonjs-loader.js";
module NewShiny = load "a-harmony-module.js"; // use the default
native harmony module loader
...
I realize this may involve providing first-class objects to a
second-class module system, but that doesn't seem impossible.
Thanks,
Kris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkzUTCcACgkQ9VpNnHc4zAxWFQCdGFHfs2ZuI8EUYX/KzHNW/2I9
bigAnj3bS09KAYR0GzaPUs7P4YgTkfoy
=59GQ
-----END PGP SIGNATURE-----
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss