Remarks about module import

Peter Michaux petermichaux at
Sat Aug 23 15:40:05 PDT 2008

I'm a bit late to this module party...

On Tue, Aug 19, 2008 at 1:00 AM, Ingvar von Schoultz
<ingvar-v-s at> wrote:

>  From the descriptions it looks like this could instead use
> a syntax based on destructuring assignment, if es-harmony
> will have destructuring:
>     var {toggle: t, set: s} = import
>     (   fetchModule (''),

Are "module" and "file" synonymous? See

What do the contents of the file look like?

fetchModule would need to work with the local file system for server-side work.

What exactly does fetchModule return? Some kind of first-class Module
class instance or is it returning the object which is being

>         {document: doc, background: bg}

What does this argument to import do?

>     );
>     t();



More information about the Es-discuss mailing list