3 ms·
Raw, unchecked pointers and manual memory management facilitate unsafe code. Any language that supports these is potentially "unsafe" to some extent. So why n
by jqpabc123 2y ago
Raw, unchecked pointers and manual memory management facilitate unsafe code. Any language that supports these is potentially "unsafe" to some extent.
So why not simply eliminate these unsafe features? The answer is --- speed.
What makes C/C++ suspect with regard to safety is the fact that these languages tend to promote unsafe features and constructs as standard practice and offer no realistic alternative using their standard libraries.
It's possible to build/invent anything using these languages including safe practices --- but the end result will wind up looking foreign to most who normally use these languages and cost more than their employers normally expect to pay.