Re: Modules: import *

2013-11-01 Thread Jason Orendorff
On Thu, Oct 31, 2013 at 12:40 PM, Erik Arvidsson erik.arvids...@gmail.com wrote: On Thu, Oct 31, 2013 at 1:22 PM, Jason Orendorff jason.orendo...@gmail.com wrote: import * from stickers; ... y = r * Math.sin(a); ... It is unclear whether `Math` refers to the global Math

Re: Modules: import *

2013-11-01 Thread David Herman
On Nov 1, 2013, at 7:44 AM, Jason Orendorff jason.orendo...@gmail.com wrote: Now... good use cases could be a sufficient counterargument to all this. Maybe we should add `import * from` in 2014. I just want to make it totally clear why it's designed this way for ES6. `import * from` poses

Re: Modules: import *

2013-11-01 Thread David Herman
On Nov 1, 2013, at 6:19 PM, David Herman dher...@mozilla.com wrote: On Nov 1, 2013, at 7:44 AM, Jason Orendorff jason.orendo...@gmail.com wrote: Now... good use cases could be a sufficient counterargument to all this. Maybe we should add `import * from` in 2014. I just want to make it

Modules: import *

2013-10-31 Thread Erik Arvidsson
I know `import * from ModuleSpecifier` was cut to make the module proposal simpler. However, we still have `export * from ModuleSpecifier` which has most of implementation complications as `import *` does. After using `import *` for over a year in Traceur (

Re: Modules: import *

2013-10-31 Thread Jason Orendorff
On Thu, Oct 31, 2013 at 9:19 AM, Erik Arvidsson erik.arvids...@gmail.com wrote: I know `import * from ModuleSpecifier` was cut to make the module proposal simpler. However, we still have `export * from ModuleSpecifier` which has most of implementation complications as `import *` does. `import

Re: Modules: import *

2013-10-31 Thread Erik Arvidsson
Thanks, that makes sense. On Thu, Oct 31, 2013 at 1:22 PM, Jason Orendorff jason.orendo...@gmail.comwrote: `import *` delays full knowledge of what's in the import lexical scope until link time. (That is, you can't figure out scopes by looking at a module in isolation. You have to wait for

modules: import hiding, and usage patterns

2012-02-08 Thread Claus Reinke
Just saw this wiki update (*) http://wiki.ecmascript.org/doku.php?id=harmony:modulesdo=diff1328732818 and this sentence: If there is a conflict between the names from two distinct imports, and exactly one of the imports uses the ''*'' form, then the other import takes precedence.

Re: modules: import hiding, and usage patterns

2012-02-08 Thread Sam Tobin-Hochstadt
On Wed, Feb 8, 2012 at 4:19 PM, Claus Reinke claus.rei...@talk21.com wrote: Just saw this wiki update (*) Before this goes further, I want to clarify that Dave and I are currently revising the wiki pages, and they're not done yet. We will announce something here when we're done, which should be