4 ms·
I was surprised the GoRe REPL [1] was not in the list of existing tools [2]? [1] https://github.com/motemen/gore https://github.com/motemen/gore [2] https://g
by samuell 11y ago
I was surprised the GoRe REPL [1] was not in the list of existing tools [2]?
[1] https://github.com/motemen/gore https://github.com/motemen/gore
[2] https://github.com/sbinet/notes-and-todos/blob/master/README.md https://github.com/sbinet/notes-and-todos/blob/master/README...
- sbinet 11y agothat's my personal bias. GoRe's REPL recompiles and re-runs the resulting binary after each line entered, accumulating side effects: $ gore gore version 0.2.5 :help for help gore> var i = 41 gore> f := func() { i++; fmt.Printf("universe=%d\n", i) } (func())(0x4012b0) gore> f() universe=42 gore> f() universe=42 universe=43 when Go was released back in 2009 there has been a string of such REPLs, which don't match "my" definition of a REPL, at least, not the one I want to be able to use for exploratory work (the kind you get from a python or IPython prompt) again, that's my personal bias. that said, GoRe is a nice project (gocode-completion, especially, is nice)