I really want a Go REPL that somehow manages to compile the new statements and execute them in an ongoing context (like Python's REPL).
Is that technically possible? Can you compile Go in Go and dynamically load it? With a shell-out to the compiler?
Is that technically possible? Can you compile Go in Go and dynamically load it? With a shell-out to the compiler?
The bigger question is whether you can dlopen(LoadLibrary) a go-compiled .so(.dll) or .a(.lib) from a go program and execute functions with it.