I am curious why iPython-like tools are not possible in Erlang. As far as long you have a REPL, is that not a solid base to start an iPython like project in any language?
(Notice I said base, not the whole enchilada; I recognize that would be going too far.)
The first hurdle is that Erlang works on modules by default. Those are expected to be compiled from a file. Now Elixir fixed that problem. For Erlang, it is probably doable via a compile-reload cycle hack. I guess it just hasn't been a priority. Maybe it should be...
Comments
I am curious why iPython-like tools are not possible in Erlang. As far as long you have a REPL, is that not a solid base to start an iPython like project in any language?
(Notice I said base, not the whole enchilada; I recognize that would be going too far.)
The first hurdle is that Erlang works on modules by default. Those are expected to be compiled from a file. Now Elixir fixed that problem. For Erlang, it is probably doable via a compile-reload cycle hack. I guess it just hasn't been a priority. Maybe it should be...
Modules don't need to be compiled from files; there's just no batteries-included "eval these lines into a module" by default. But it's not hard:
Note that even an "anonymous" module must have a name, to serve as a handle for the VM. But you can do something like: