Erik Arvidsson (2014-01-28T18:39:55.000Z)
On Tue, Jan 28, 2014 at 12:32 PM, Brendan Eich <brendan at mozilla.com> wrote:

> John Lenz wrote:
>
>> There  are three issues in my mind for tooling:
>> 1) should the code be parsed as "use strict"
>> 2) are "import" and "export" and "module" statements valid
>>
>
> Note no "module" form in ES6.


module M from './path/to/module';

is a valid ModuleItem.


>
>
>  3) should top level declarations be considered visible outside the file
>> (no can be inferred from the presence of import or exports)
>>
>> It is my guess that it will be a common beginner mistake to load modules
>> as scripts or try to use "import" from scripts.  The first is the primary
>> one as keywords etc are different.
>>
>
> You could be right -- we should find out. The "mistake" has a flip-side,
> if we allow it: detection-based two-way module-scripts.
>
> /be
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>



-- 
erik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140128/a809eac3/attachment-0001.html>
domenic at domenicdenicola.com (2014-01-31T21:21:11.711Z)
On Tue, Jan 28, 2014 at 12:32 PM, Brendan Eich <brendan at mozilla.com> wrote:

> Note no "module" form in ES6.

```js
module M from './path/to/module';
```

is a valid ModuleItem.