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 <[email protected]> wrote:
>
>
> David Herman wrote:
>
>> On Dec 5, 2012, at 10:41 PM, Herby Vojčík<[email protected]> 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
> [email protected]
> https://mail.mozilla.org/**listinfo/es-discuss<https://mail.mozilla.org/listinfo/es-discuss>
>
--
- Matthew Robb
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss