3 ms·
People think differently. For some people, C++ fits the way they think. For some, it very much does not. Even for those that it fits, C++ used to be a relati
by AnimalMuppet 4y ago
People think differently. For some people, C++ fits the way they think. For some, it very much does not.
Even for those that it fits, C++ used to be a relatively simple language. They could understand all of it (if they go back that far). Now it's not, and they can't. There are tons of corners of the language, and virtually nobody knows all of them, still less how they interact with each other. This can lead to some extremely counterintuitive behaviors in your code. Many people don't like that.
Personally, I like C++. It's the only mainstream language with destructors, and I consider that a very useful thing for resource management. (If the only resource you have to worry about is memory, garbage collection is probably a better answer. But if you also have to close files and release semaphores, destructors can make that less of a headache.)
Still, if I'm working on my own thing, I'm not sure C++ is the first language I reach for. Depends on the problem.
- pjmlp 4y agoAda, Swift, Rust, Delphi, Python also have destructors. Granted, they all have different levels of mainstream. I also don't manage to really keep up with C++ in detail, only enough to be aware of where it is going.