Module Comments

Russell Leggett russell.leggett at gmail.com
Fri Dec 7 06:01:37 PST 2012


On Thu, Dec 6, 2012 at 1:46 PM, Brendan Eich <brendan at mozilla.org> wrote:

> David Herman wrote:
>
>> >  Cool, definitely want the plain identifier form, it's part of the
>>> binding (and destructuring) pattern language.
>>>
>>
>> Well, the thing is it isn't consistent with the destructuring meaning:
>> dropping the curlies here means extracting a single export (aka property),
>> which is not what it means in destructuring assignment/binding anywhere
>> else.
>>
>
> You are so right. Therefore I think Yehuda et al. (as Andreas affirmed)
> are spot-on in advocating
>
> import foo from "foo"; // import the singleton export = thing from "foo"
> import {bar} from "foo"; // import the bar export from "foo"
>
> and we don't have a RTL problem.


+1

For some reason I thought this is actually how it was working at some
point, but I haven't been following as closely as I should.


>
>
> /be
>
> ______________________________**_________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/**listinfo/es-discuss<https://mail.mozilla.org/listinfo/es-discuss>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121207/e03b46b0/attachment-0001.html>


More information about the es-discuss mailing list