Brendan Eich (2014-01-28T03:22:02.000Z)
Kevin Smith wrote:
>
>
>         Because it is js everywhere. Pick any file in an
>         AMD/require.js system and you can parse it.
>
>
>     ES6 cannot support require as a function that synchronously loads
>     from the filesystem, and I think you know this.
>
>
> Without a new extension, you cannot "import" from an old-style module 
> in the browser or the server.  One must know a priori how to parse the 
> file before one parses the file.  Old-style modules cannot (in 
> general) be parsed as ES6 modules, and ES6 modules (in general) cannot 
> be parsed as old-style modules.

Yes, so?

My argument was that Node.js has both non-module and module files with a 
common suffix, .js.

You are mixing compatibility with "consistency" arguments.

/be
domenic at domenicdenicola.com (2014-02-04T16:03:25.994Z)
Kevin Smith wrote:

> Without a new extension, you cannot "import" from an old-style module 
> in the browser or the server.  One must know a priori how to parse the 
> file before one parses the file.  Old-style modules cannot (in 
> general) be parsed as ES6 modules, and ES6 modules (in general) cannot 
> be parsed as old-style modules.

Yes, so?

My argument was that Node.js has both non-module and module files with a 
common suffix, .js.

You are mixing compatibility with "consistency" arguments.