4 ms·
I agree that the act of submerging oneself into C++ is really a frustration about the language. It's a lot like using APL or Brainfuck as you mention and gettin
by danbolt 8y ago
I agree that the act of submerging oneself into C++ is really a frustration about the language. It's a lot like using APL or Brainfuck as you mention and getting into gear. Still, I wouldn't say that C++ is a "true high-level language" or tries to be based on the reasons you mention. It's purpose is wide-ranging, but being closer to the metal than something like Ruby, C#, or Julia. And regardless, I think there are a lot of contexts where C++'s features can give productivity benefits over the time spent working through the hard spots. That's going to be pretty subjective though.
Based on what you mention though, I'd encourage you to use "Plain Old C" (ANSI, C99, or C11?) if it helps you be more productive. I can imagine with more and more languages fitting the that semi low-level space (eg: Rust and Zig) coming on the scene, there's a lot more opportunity to find the right tool than ever before.
- notacoward 8y agoI've been writing Plain Old C for ~25 years, and only within the past year switched to C++ because that's the language of the project I'm working on. So I get to work on interesting problems in a domain I care about, and the language is the price I pay. Rust or Zig would certainly be preferable, as would a half dozen other languages. Still, it could be worse. Apparently PHP is still a thing. ;)
- v_lisivka 8y agoYou can mix Rust and C++. I use mainly Rust on my project, while other developers are using C&C++.