18 ms·
I still believe that C++ is great because you can "use the good parts". To me the STL containers are good enough. It's always a balance between how much time y
by jokoon 7y ago
I still believe that C++ is great because you can "use the good parts".
To me the STL containers are good enough. It's always a balance between how much time you save, and how much performance you lose. C++ is good enough with this. The only lacking thing would be an object pool.
The author writes
> but so simple it's not too hard to learn to use it carefully.
I would really love a replacement to C++, or an subset of C, that have the best of both languages. I can't use C because it becomes hairy very quickly, since you don't have things like STL containers.
I don't like Rust for the exact reason I quoted the author. The learning curve of Rust is too step, and its syntax if to distant from C. C is great because it's easy and fast, but it's also lacking many modern features that makes the programmer's life easier, without stomping down on performance or customization.
It's true that C++ is very complex, but I still believes it's very very usable, and the standard is improving a lot.
- skohan 7y agoYeah I agree that there's still room for a "better C". Just C but with a few modernizations would go a long way. I think Rust has a different lane: Rust is for when safety is absolutely important. C is for when you want very little abstraction between you and the hardware, and you just want it to do what you tell it.