ServerJS/Modules/PythonicModules: Difference between revisions

Jump to navigation Jump to search
(New page: = Pythonic Modules = This proposal describes a module system similar to the one implemented in [http://github.com/hns/helma-ng/tree/master Helma NG]. I call it Pythonic Modules because it...)
 
 
Line 57: Line 57:


Should the module lookup path be mutable during program execution? Perhaps an array require.path could be mutated for this purpose. This may be tricky to implement and seems non-essential. Can this be postponed to a later edition of the spec so as not to slow things down?
Should the module lookup path be mutable during program execution? Perhaps an array require.path could be mutated for this purpose. This may be tricky to implement and seems non-essential. Can this be postponed to a later edition of the spec so as not to slow things down?
Should the module automatically-tried extensions be mutable during program execution. Something like require.extensions=["dll","js"] ?


Should there be a require.loaded array-valued property with all the loaded module names or scopes? This seems non-essential. Can this be postponed to a later edition of the spec so as not to slow things down?
Should there be a require.loaded array-valued property with all the loaded module names or scopes? This seems non-essential. Can this be postponed to a later edition of the spec so as not to slow things down?


What is the value of "this" when evaluated in the module scope?
What is the value of "this" when evaluated in the module scope?
39

edits

Navigation menu