3 ms·
Is there any language not safer than C++?
by hoosieree 9y ago
Is there any language not safer than C++?
- viraptor 9y agoMany. I like bashing C++ as much as the next dev, but modern C++ has nice type checks, interesting types/wrappers which help with common patterns (shared, unique ptrs, etc), and the compilers learned some great tricks which allow you to run memory safety checks yourself. (Asan and others) Also multithreading gets some improvements which will take more of the manual sync details away from the business logic. (http://www.modernescpp.com/index.php/multithreading-in-c-17-and-c-20 http://www.modernescpp.com/index.php/multithreading-in-c-17-...) It's still delivered attached to a foot-gun, but you could do worse.