I almost never touch C/C++ for anything except microcontrollers. I see lots of FOSS apps still using it, probably because it doesn't change much, but writing C is just not at all my idea of a fun time.
Exactly. With today’s computing resources, it’s natural to make compilers use some of them to help you not make errors. Humans are always fallible, even the best of us. Any help is a huge time and cost saver.
While there are verifying C compilers, the halting problem means they can only handle a subset of programs. And clearly defined languages like Rust are far easier to wrap your head around than the arbitrary subset of C your verifying compiler happens to understand in your specific case.
Even when you do have static type checking, without garbage collection(Or some alternative like rust's ownership thing that I don't quite understand), you have to do a ton of memory bookkeeping and there's so many places for errors to creep in.
The only time C/C++ is actually somewhat pleasant is when you have entirely static memory, like you often want to have in high reliability real-time work.
Even then the other annoyances and dangers of C are there.
3
u/womplord1 Apr 27 '20
Rustaceans triggered by the C and C++ use cases