-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parameterized modules in the REPL #998
Comments
We're still in the design phase on the new module system, so things are a bit fluid. Let me see if I understand the use case you are concerned about. You'd like to be able to load a parameterized module at the REPL by setting the parameters directly from the prompt; is that right? |
Right. At the REPL, I'd like some way to use the definitions from a parameterized module without needing to make a new file for a specific instantiation or for a "backtick" import like I do now. Otherwise why can I load parameterized modules at all? I originally intended to ask if a parameterized module could behave as if it was "backtick" imported when loaded with |
Loading an uninstantiated parameterized module is quite useful, for example:
The new design is not yet solidified, but one of our goals is to make it more convenient to instantiate parameterized modules, so perhaps this would be less of an issue, but we could still consider some mechanism for setting parameters on the REPL. |
The backick modules did end up staying in the design, so I'll close this for now. |
How can I interact with a parameterized module when it is loaded in the REPL?
I usually make a second, single line module that "backtick" imports the parameterized one, but I saw in #815 that this is up for removal. It got me wondering if there is (or will be) a way that I can set and change parameters from within the REPL when such a module is loaded.
The text was updated successfully, but these errors were encountered: