3 ms·
> What about making it (almost) impossible to write UB code, wouldn't that be better for all? Congratulations, you have invented Rust.
by ooterness 3y ago
> What about making it (almost) impossible to write UB code, wouldn't that be better for all?
Congratulations, you have invented Rust.
- nuancebydefault 3y agoMy take is that it would have been better for c/c++ to gradually improve the language rather than almost purist-wise stick to strict backward compatability. Want to compile your old code without changes? Use an older compiler or a backward compatibility switch of a newer compiler.