As I see it, the argument for addressing this part of the interpreter is to make itQuote from: "ralph.ronnquist"possibleto build a generic modularization support frameworkthat avoids everyone having to hard code the modularization into every application.
Introducing
It
In summary: there is
What are the arguments against introducing it?
Isn't it suited to give exactly this (small) info from
This would be given byI think the support needs from the interpreter includes the two discussed: i.e., knowing the current main-args index, ...Quote from: "ralph.ronnquist"
This could well be done by module(s) code (load functions with extended functionality) outside interpreter core.... and tracking which files are loading at least while they are loading, ...Quote from: "ralph.ronnquist"
Couldn't this be done by module code? Possibly not by stopping of loading something, but by stopping of evaluating it, if some condition has been met.... but it also will require some way to "stop" the loading/processing part-way into a file.Quote from: "ralph.ronnquist"
It would be interesting to know, for which usecaseQuote from: "ralph.ronnquist"
Without those, I don't think I would be able to invent a generic modularization framework, and will have to settle for hard-coded modularization special to each application.
Putting code in siblings of a script, to be loaded by this script, is not robust, if you don't have aQuote from: "ralph.ronnquist"
On the other hand, many applications are small enough to not make this an issue. And you can come a long way by compositing applications by copying snippet files to be siblings of the main.