On Thu, Jan 14, 2010 at 2:29 PM, Mike Samuel <[email protected]> wrote:
> defineDelayedFunction could be used with an async channel like
> XMLHttpRequest to define a module system, but all module definitions
> would happen at execute time, so it cannot be used to define a module
> system that resolves definitions prior to body evaluation.

Yes, and if the definitions are resolved while the body is being
evaluated, and the thread of execution in which the body is being
evaluated blocks, this will freeze the UI of the app or otherwise
prevent it from servicing requests while the requested module is being
resolved.

> defineDelayedFunction would impose lazy fetching, but
> modules_emaker_style allows eager fetching.

Yes. Thanks for the clarification.

Ihab

-- 
Ihab A.B. Awad, Palo Alto, CA
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to