On Jun 3, 2013, at 9:33 AM, Yehuda Katz <wyc...@gmail.com> wrote: > On Mon, Jun 3, 2013 at 12:24 AM, Domenic Denicola > <dome...@domenicdenicola.com> wrote: > From: sam...@gmail.com [mailto:sam...@gmail.com] On Behalf Of Sam > Tobin-Hochstadt > > > I would just write `import {} from "someModule";` > > That appears to be disallowed; I believe > > "{" ImportSpecifier ("," ImportSpecifier)* ","? "}" > > requires at least one `ImportSpecifier`.
Oversight. Fixed. > (It's also sad and ugly; any reason not to allow `import "someModule";`?) > > I've advocated for this in the past. I believe it should be allowed. I've always liked this too, and just hadn't really gotten to it. But I've added it to the wiki page too. I'll work with Jason to add this to the reference library; it should be a small addition. > Separately, I would like this form to be specified as deferring execution > until bindings are explicitly imported (from another module), or a > synchronous `System.get` call is made. > > This would make it possible to guarantee that a synchronous `System.get` will > succeed, without being forced to execute the module first. Yep, agreed. (To be pedantic, it's not that it defers execution so much as that it doesn't force execution.) Dave _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss