4 ms·
Exactly! C++ is a language where you are free to choose level of safety. None of your examples are a fault of the language - it is a fault of developer not doi
by futurix 9y ago
Exactly! C++ is a language where you are free to choose level of safety.
None of your examples are a fault of the language - it is a fault of developer not doing necessary safety checks.
- johannes1234321 9y agoThe point is: some languages have capabilities to take some classes of errors out. A language with GC and heap-allocation only makes it hard to get access-after-free-style errors. Languages with bounds checks on all elements reliably crash (throw an exception) instead of showing "random" behaviour on bad reads. Of course all of that comes with a cost, but for many domains that works out ...