>>>> The bracket syntax is pretty confusing with object literal notation imo.

>> It shouldn't be too confusing, and the similarity is in fact intentional. 
>> You should read import as destructuring (and export as the inverse 
>> structuring, if you want).

I agree that this isn't really a question specifically for modules, as they are 
just reusing the destructuring syntax.  But I will say that I've seen a lot of 
confusion about the object destructuring syntax generally.  At least half the 
times I've shown object destructuring or module import renaming syntax I've 
gotten "don't you have that backwards?" remarks.  I can't say I have a better 
recommendation for the general object destructuring syntax, but I expect this 
to be a point of significant confusion for newcomers to ES6.

Luke

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to