Module system strawpersons

ihab.awad at gmail.com ihab.awad at gmail.com
Fri Jan 15 11:33:30 PST 2010


Thanks Mike, all bang-on. One minor comment:

On Fri, Jan 15, 2010 at 11:20 AM, Mike Samuel <mikesamuel at gmail.com> wrote:
> I think normal usage would look like
>     var name = (import ...)(module, instance, parameters).Baz.find(name)

Actually the module function takes a map of free variable names to
bindings. So it would be more like:

var name = (import ...)({ bufferSize: 3, mapMaker: myMapMaker}).Baz.find(name);

Ihab

-- 
Ihab A.B. Awad, Palo Alto, CA


More information about the es-discuss mailing list