Module Comments

Matthew Robb matthewwrobb at gmail.com
Wed Dec 5 23:09:18 PST 2012


I don't see why you can't treat it like this: import <local accessor> from
<resource>

import ga from "ga";

If you want to import specific exports then use curlies or dot notation

import ga.foo from "ga";
import { foo } from "ga";


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

>
>
> David Herman wrote:
>
>> On Dec 5, 2012, at 10:41 PM, Herby Vojčík<herby at mailbox.sk>  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).
>
>
>  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";`.
>
>
>  import x from "goo";
>>>
>>
>> That's identical to your first suggestion.
>>
>
> Same as above.
>
>
>  import ga "ga";
>>>
>>
>> Awkward.
>>
>> Dave
>>
>
> Herby
>
> ______________________________**_________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/**listinfo/es-discuss<https://mail.mozilla.org/listinfo/es-discuss>
>



-- 
- Matthew Robb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121205/4404abc3/attachment.html>


More information about the es-discuss mailing list