|
|
|
|
|
by bobthegoggles
25 days ago
|
|
I tend to wonder, in an alternate reality, where the buck stopped at C for systems languages, would we be better off because more people would use it and know how to fix memory related issues? We’ve sent rockets into space running C/C++ and assembly. And that was long before C++11 rolled around. I’m wondering because: man Rust is an ugly language. C is not perfect either, but it’s still pretty close to what it was FIFTY YEARS AGO. Fast forward to now, and all we’ve come to is Rust? I just wonder why don’t we just keep using C, C#, and Java? I mean the former two are memory safe, and they can do “unsafe” just like Rust. Another thing: why do we write pseudocode and not design languages to look like pseudocode? With Rust and modern C++ compile times you’d think the machine is parsing prose and turning it into assembly… |
|
No, because what people don't realize is there is a constant influx of people who are new to C and don't know how to use it and how to fix memory related issues, so you can't just train everyone to not do them -- newbies by definition are untrained. The only winning move is to encode best practices into the compiler to make it hard for newbies to load the footguns, and only put them behind a bunch of warnings and features that experts can navigate.