3 ms·
Go is inspired by the C++ subset that Google choose to use (Just look for the Google's C++ style guide to look for things that Google banned). So in many ways,
by qihqi 11y ago
Go is inspired by the C++ subset that Google choose to use (Just look for the Google's C++ style guide to look for things that Google banned). So in many ways, it's chosen to work as C++ in lots of corner cases.
In fact, that enabled automatic tool to convert Go compiler written in Google's C++ to Go.
- aikah 11y ago> In fact, that enabled automatic tool to convert Go compiler written in Google's C++ to Go. Hmm, I thought go was written in C at first place and not C++. It seems to me that Go creators were never big fan of C++ so I don't think it takes any inspiration from C++ . All I see in some kind of C + garbage collection + interfaces and some concurrency percs. I fail to see how it was influenced by C++ in any ways.
- mbrubeck 11y agoThat's correct, the Go toolchain was originally written in C, and translated from C to Go: https://golang.org/doc/go1.5#c https://golang.org/doc/go1.5#c And of course Go's designers include some of the designers of C (well, its predecessor B) and Limbo, and Go seems influenced more by that tradition than by C++.