gomacro
gomacro copied to clipboard
:source codefile
It would great to have a easy way to read and interpret a file full of expressions and declarations.
Perhaps there is always a way I'm not finding. The opposite of :write. One could ideally :write the current set of definitions and types, then :source them back in later, in a different session.
Currently, there is no single command to eval a whole file:
the old classic interpreter has EvalFile(), but it's missing from the current fast interpreter.
It's surely worth adding, I will work on it.
Once this is implemented, it is very handy if we auto load a rc file (~/.gomacrorc) on start.