News for hackers. Stuff that matters.
Re:Constraints in Go by vbezhenar on Sunday November 17, 2024 @06:40AM (#42163612)
Generic containers are needed in some cases. Using generic containers with interface{} is very slow and memory-intensive. Not a problem for small containers, but for big containers it's just not feasible, so you would need to either copy&paste huge chunks of code or generate code. Compared to those approaches, generic support is superior in every way, so it's needed. But creating STL on top of them is not the indended use-case.

There are no comments on this comment yet.