Module Comments

David Herman dherman at
Wed Dec 5 23:22:19 PST 2012

On Dec 5, 2012, at 11:05 PM, Herby Vojčík <herby at> wrote:

>>> import x from "goo";
>> Already taken. You can't use one syntax to mean two things.
> I don't. These were included to show the two syntaxes (existing from and proposed instead-of-as grouped together; to see how they look mixed).

Ah, my misunderstanding, thanks for clarifying.

>>> import ga for "ga";
>> That doesn't have any correspondence to its meaning in English.
> It does. import ga for (the whole module) "ga".
> Alternative was `import ga for module "ga";`.

It doesn't work, at least not with the verb "import." What you're trying to say is "import the module 'ga' with the name ga as its local binding." You're not importing the *binding itself*.


More information about the es-discuss mailing list