4 ms·
> I pretty much only program in C++ at work and Rust at home now, and I think Rust is hands-down a better designed language. It just feels more coherent and con
by dom0 10y ago
> I pretty much only program in C++ at work and Rust at home now, and I think Rust is hands-down a better designed language. It just feels more coherent and consistent.
C++ turned out kinda... good -- considering that it started out as "tacking classes on C".
- Koshkin 10y agoClasses (with destructors) is the single most powerful and important addition to plain C. In C, even exceptions can be emulated, more or less naturally, but destructors cannot (without a compiler-specific extension). So, I'd argue that the best parts were the ones that came in early. The latest version of C++, of course, is nothing to sneeze at, either.
- svckr 10y agoAgreed. RAII is something I miss deeply in many other languages.