3 ms·
Sure, you can change C & C++ to be memory safe. You can either make the change mandatory which breaks backwards compatibility & may as well be a new language, m
by SAI_Peregrinus 2y ago
Sure, you can change C & C++ to be memory safe. You can either make the change mandatory which breaks backwards compatibility & may as well be a new language, make it opt-in which allows developers to forget & introduce errors (and doesn't fix any existing code), or make it opt-out which might help but only once people adopt the new version in 20 years (and still doesn't fix any existing code).
Also C & C++ are different languages. C++ is larger but accepts change more readily, C is much smaller but is much more resistant to change.
- pizlonator 2y agoOr you can do it without breaking compatibility. https://m.youtube.com/watch?v=JRoX9_lXJFg https://m.youtube.com/watch?v=JRoX9_lXJFg
- alkonaut 2y agoone pays orders of magnitude in overhead. It’s a band aid for parts of projects that can’t be written in higher level languages (most C and C++ things) or Rust (few C/C++ things are in this category).
- pizlonator 2y agoFor now. I haven't optimized it yet.