3 ms·
I think a Go REPL would be a very cool project. I think it is doable. I always have ipython up, when I program in Python. There is even a C++ REPL somewhere. I
by rdtsc 13y ago
I think a Go REPL would be a very cool project. I think it is doable. I always have ipython up, when I program in Python.
There is even a C++ REPL somewhere. It basically compiles very time your enter the expression and runs the code. I think it can be done in Go (but someone correct me, if I am wrong here).
- zaphar 13y agogo run is surprisingly effective for playing around with code. I keep a main.go file in my home directory that I edit with vim and then run with ':!go run %'. Go compiles and runs fast enough that I almost don't notice its'a compiled language.
- stock_toaster 13y agoThere is also the Go Playground[1], which is great for testing out and/or sharing small code blobs. [1]: http://play.golang.org
- foofoobar 13y agoYou can try this: https://github.com/vito/go-repl https://github.com/vito/go-repl
- shurcooL 13y agoI use https://github.com/shurcooL/goe https://github.com/shurcooL/goe, which is a repl without the loop.