3 ms·
Whether by design or accident, Go is filling the use case of "you tried Python but performance wasn't good enough". People will bring up cases like "you can't w
by koenigdavidmj 13y ago
Whether by design or accident, Go is filling the use case of "you tried Python but performance wasn't good enough". People will bring up cases like "you can't write a generic map function, or tree data structures!", but Go isn't the language for those things. In Go, you would just use a for loop or a dictionary-based map. If your program gets to the point where that no longer cuts it, then it's time to move on to a different language.
- JulianMorrison 13y ago…or a data structure that uses interface{} and you manually unpack. Or a hand specialized (rather than generic) data structure. Bear in mind that with the new release of Go, maps are already hand specialized for primitives.
- deleted 13y ago[deleted]
- deleted 13y ago[deleted]
- azth 13y ago> Whether by design or accident... It seems to have been by accident, as they were originally designing it to be a "systems" programming language to take on C++. What eventually happened is that most(?) Go programmers came from Python, Ruby, and other scripting languages. > In Go, you would just use a for loop or a dictionary-based map. If your program gets to the point where that no longer cuts it, then it's time to move on to a different language. So much for it being a "systems" language then :)