Search code examples
erlang

Is there a full REPL for Erlang?


Is there a way to have a full interpreter in Erlang, not just a "shell".

Since it is a dynamic language, not being able to define named functions in the interpreter is a little bit disappointing... I suspect that it is because compilation units (modules) must be explicitly compiled for their execution by the VM, but maybe a REPL acting as a dynamic/recompilable module exist?


Solution

  • This is related to Defining erlang functions in the shell

    Short answer:

    • Use funs

    Longer answer: