Claude Pache (2014-06-22T05:56:33.000Z)
Le 22 juin 2014 à 06:44, Kevin Smith <zenparsing at gmail.com> a écrit :

>> 
>>     export default { a: a1, b: b1 };
> 
> To expand a bit:  these two export declarations are both valid:
> 
>     export { a, b, c };
>     export default { a, b, c };
> 
> They differ only in the presence of a keyword, yet they are have completely different semantics.

The confusion comes from that the same delimiters, `{` and `}`, are used for both object literals and named exports. But IIUC, these are two different things. So, let's just pick other delimiters.

—Claude 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140622/9ba52b91/attachment.html>
dignifiedquire at gmail.com (2014-06-22T12:39:10.347Z)
> Le 22 juin 2014 à 06:44, Kevin Smith <zenparsing at gmail.com> a écrit :
>
>> 
>>     export default { a: a1, b: b1 };
> 
> To expand a bit:  these two export declarations are both valid:
> 
>     export { a, b, c };
>     export default { a, b, c };
> 
> They differ only in the presence of a keyword, yet they are have completely different semantics.

The confusion comes from that the same delimiters, `{` and `}`, are used for both object literals and named exports. But IIUC, these are two different things. So, let's just pick other delimiters.

—Claude