Re: Module: export *

2013-11-01 Thread Sam Tobin-Hochstadt
On Thu, Oct 31, 2013 at 11:06 AM, Erik Arvidsson erik.arvids...@gmail.com wrote: Make sense but I'm not sure it is needed/desired. It's very useful for convenience libraries, quick refactorings, etc. In other languages, I use it a lot. Where is this documented? It's very briefly described in

Re: Module: export *

2013-11-01 Thread David Herman
On Oct 31, 2013, at 8:06 AM, Erik Arvidsson erik.arvids...@gmail.com wrote: Make sense but I'm not sure it is needed/desired. I agree, actually, despite being the one who put it in there in the first place. I originally intended it as a convenience e.g. for quick scripts. But by itself it's

Module: export *

2013-10-31 Thread Erik Arvidsson
Both the wiki and the ES6 draft have the following as valid ExportDeclaration: export * (without a `from ModuleSpecifier`) What is the intended semantics for that? -- erik ___ es-discuss mailing list es-discuss@mozilla.org

Re: Module: export *

2013-10-31 Thread Sam Tobin-Hochstadt
This exports all of the declarations defined in the current module. So: ``` let x = 1; class foo {}; export *; ``` exports both `x` and `foo`. Sam On Thu, Oct 31, 2013 at 10:02 AM, Erik Arvidsson erik.arvids...@gmail.com wrote: Both the wiki and the ES6 draft have the following as valid

Re: Module: export *

2013-10-31 Thread Erik Arvidsson
Make sense but I'm not sure it is needed/desired. Where is this documented? On Thu, Oct 31, 2013 at 10:39 AM, Sam Tobin-Hochstadt sa...@cs.indiana.eduwrote: This exports all of the declarations defined in the current module. So: ``` let x = 1; class foo {}; export *; ``` exports both

Modules: allowed combinations of module, export

2011-05-19 Thread James Burke
Looking at harmony modules[1], I wanted to get some clarification on the order of export, module and such in a module's body. Looking at the Syntax section, this section: ModuleElement(load) ::= Statement | VariableDeclaration | FunctionDeclaration

Re: Modules: allowed combinations of module, export

2011-05-19 Thread David Herman
All exports of all declared/required modules are computed before execution starts. So it doesn't matter what order things run in, you won't get any no such export errors if you import a valid export. Dave On May 19, 2011, at 2:13 PM, James Burke wrote: Looking at harmony modules[1], I wanted