3 ms·
(Mostly trolling) You must be missing extension method that other modern languages have, let alone the pipe operator of Elixir, R, etc. ;-)
by flakiness 5y ago
(Mostly trolling) You must be missing extension method that other modern languages have, let alone the pipe operator of Elixir, R, etc. ;-)
- jerf 5y agoThe places I've "shell scripted with Go" involved also using some other code I already had in Go. The referenced page doesn't show it, but being able to do a bit of quick shell scripting-type manipulation on a file, then feed it to the Go JSON decoder to get Go objects, call a few methods or something, then maybe manipulate it a bit more on the way out, is sort of thing that is the real killer feature, IMHO. The space of "shell-like libraries", not least of which is shell itself, is so rich it's hard to beat out everything else on its own merits. But having something as easy as shell that integrates back into your Go ecosystem is very convenient. And I'm sure similar things are true for the other libraries in other languages. So I would personally not present this as "here's something awesome Go can uniquely do", but, "if you already have Go, be aware of this tool/technique".
- flakiness 5y agoYeah, I agree with your point and can see the usefulness. Sorry for trolling, just couldn't resist :-/