Module system strawpersons
brendan at mozilla.com
Mon Jan 18 16:54:24 PST 2010
On Jan 18, 2010, at 4:48 PM, Kam Kasravi wrote:
> In order to satisfy something like
> (import B).foo()
> the browser would need to import B prior to reaching this statement
> or suspend execution at the '.' so the resources could be fetched.
> I believe we're talking about the former - getting all resources
That's right -- no races, execution still seems single-threaded.
Wherefore the special form, although if this line is in a seldom-
executed branch you still have the hit of loading B up front.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss