3 ms·
Could you elaborate a bit about the myriad joys?
by stephc_int13 5y ago
Could you elaborate a bit about the myriad joys?
- ncmncm 5y agoThe language is wonderfully expressive, which is experienced most strongly when making or using powerful libraries. Because C++ can capture semantics so well, libraries can be easy and safe to use, yet much faster than you could afford to code yourself. So, you can use libraries with no worry that you may be costing yourself performance. Because the libraries can be so nice, you can code at a level where bugs mostly are revealed at compile time: if your code compiles, it usually runs right the first time; or if not, it is easy to see why. Most potential bugs are in the library code, but being a library used in many programs, it commanded enough attention to be made and kept correct and fast. The above is why Rust will not displace C++: there are thousands of times as many competent C++ coders as Rust coders of any degree, and the problems Rust prevents don't happen in competent C++ coders' programs, but the extra work to make Rust code possible is not needed. In a very real sense, C++ libraries are doing the job reserved to Rust's compiler, which is a sensible choice because you needed libraries anyway.