3 ms·
> can do everything that C++ can Don't know about Rust, but for go: . can't match C++ on speed . doesn't (yet, AFAIK) have generics.
by ur-whale 6y ago
> can do everything that C++ can
Don't know about Rust, but for go:
. can't match C++ on speed
. doesn't (yet, AFAIK) have generics.
- ben-schaaf 6y agoGo also can't call any C libraries without massive overhead (at least not the reference implementation), nor run without a runtime. Go isn't really an alternative to C/C++/rust and it's not meant to be.
- adrianN 6y agoEvery programming language is, to different degrees, a replacement for every other programming language. Whether Go is a replacement for C++ or not depends on what you want to do. For a lot of use cases where you might choose C++, Go would be fine too.
- stouset 6y agoI think GP’s point is that the overlap of domains that C++ is well-suited for and that go is well-suited for isn’t particularly large. Go was at least originally touted as a C++ replacement, but to be honest, that story hasn’t really panned out in practice.
- pjmlp 6y agoDepends, while I am not big fan of Go, not everyone thinks that way, https://github.com/f-secure-foundry/tamago https://github.com/f-secure-foundry/tamago https://labs.f-secure.com/blog/tamago/ https://labs.f-secure.com/blog/tamago/ https://www.f-secure.com/en/consulting/foundry https://www.f-secure.com/en/consulting/foundry