4 ms·
"I don't care" is not the same as "nobody cares", and especially not "nobody will ever care". Why would somebody care? Well, C++ gets used a lot in embedded s
by AnimalMuppet 13y ago
"I don't care" is not the same as "nobody cares", and especially not "nobody will ever care".
Why would somebody care? Well, C++ gets used a lot in embedded systems. There, you can have different storage pools for different specialized kinds of memory. But if Go isn't trying to solve those kinds of problems, then Go doesn't need the same machinery that C++ does. It doesn't make C++ stupid, it makes it designed for a different environment.
Also note that C++/STL templates default the allocators and comparators, so you don't need to supply them unless you really need them. That's pretty much what you're asking for... until you try to read a compiler or linker message.
- kelnos 13y agoSorry, I wasn't clear in my overall message. The only point I was trying to make is that "generics error messages are hard to read in C++" is false: it's really that STL-related error messages are hard to read. If someone wanted to build a simple standard library that omits a lot of the complexity provided by the STL, they could do so, and the error messages would likely be readable.