4 ms·
So it's safe so long as you're using the safety features. So, unsafe.
by TazeTSchnitzel 10y ago
So it's safe so long as you're using the safety features.
So, unsafe.
- pjmlp 10y agoC++ is a car with safety belts. It is up to the person to buckle it, or not. C is a car made in the days when having a safety belt wasn't even a concept, so there is no option to buckle it.
- Spivak 10y agoMaybe a better metaphor would be C is a car with a knife pointing out of the steering wheel. The fact that it's dangerous makes the person drive safer and more cautiously.
- marssaxman 10y agoNah... C is just a motorcycle. Primitive, zippy, dangerous, loud, and fun. People who don't ride don't understand; people who do ride are OK with the risks they're taking.
- DerekL 10y agoIt's a often repeated idea that the dangers of making mistakes with C code will scare the programmers into writing correct code. This completely fails in my experience. I've worked on large C projects that suffered a ton of leaks, free-after-use, buffer overruns, etc.
- user5994461 10y agoCorrection: use-after-free