Kevin Smith (2013-06-25T13:34:21.000Z)
>
>
>
> **
>
> import “classes/foo”; // use default namespace****
>
> new foo.bar();****
>
> ** **
>
> module ns from “classes/foo” ; // alternative namespace****
>
> new ns.bar();****
>
> **
>

How is the first example any better than the second?  The first is far more
difficult to statically analyze, since any identifier could potentially be
a "namespace".

{ Kevin }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130625/3c9b519d/attachment.html>
github at esdiscuss.org (2013-07-12T02:27:37.454Z)
> ```js
> import "classes/foo"; // use default namespace
>
> new foo.bar();
> ```
>
> ```js
> module ns from "classes/fo"; // alternative namespace
>
> new ns.bar();
> ```

How is the first example any better than the second?  The first is far more
difficult to statically analyze, since any identifier could potentially be
a "namespace".