Stream: beginners

Topic: Modules in the REPL?


view this post on Zulip Qqwy / Marten (Jul 07 2022 at 09:57):

Is there already a way to load one of your modules in the REPL? Or is the best approach copy-and-pasting the contents of the module into it for now?

view this post on Zulip Brian Carroll (Jul 07 2022 at 11:04):

No it's not there yet. It doesn't remember anything in between entries.
Every expression you enter becomes the main of a new program. It gets compiled, executed, printed out, and then thrown away. There's no persistent state.
So to test a module you'd have to paste it all in as a single multi-line expression.


Last updated: Jul 06 2025 at 12:14 UTC