Jonathan Bond-Caron (2013-06-25T13:22:26.000Z)
I've been experimenting with the modules definition and find it unfortunate there's no default literal name for a module.

Could there be an optional 'namespace' or literal name within the module block?
module "classes/foo" {
     namespace foo;

     export class bar {}
}

import "classes/foo"; // use default namespace
new foo.bar();

module ns from "classes/foo" ; // alternative namespace
new ns.bar();

Some more examples here:
https://github.com/jbondc/ECMAScript/blob/master/index.html


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130625/c66812b0/attachment-0001.html>
github at esdiscuss.org (2013-07-12T02:27:36.869Z)
I've been experimenting with the modules definition and find it unfortunate there's no default literal name for a module.

Could there be an optional 'namespace' or literal name within the module block?

```js
module "classes/foo" {
     namespace foo;

     export class bar {}
}

import "classes/foo"; // use default namespace
new foo.bar();

module ns from "classes/foo" ; // alternative namespace
new ns.bar();
```

Some more examples here:
https://github.com/jbondc/ECMAScript/blob/master/index.html