Could you use this to make a Go REPL?
The method I wrote about doesn't seem particularly any more conducive to making a REPL than progressively building a valid Go program with each line and compiling/running that (since Go's compiler is very fast).
However, there may be some benefits to prototyping in an environment like this where you can ignore types for a bit.