News for hackers. Stuff that matters.
Re:C++ the Good Parts (2014) by ncmncm on Thursday October 01, 2020 @12:13PM (#24652645)
Aldanor has an important point here, in the "and the some".

Rust is deliberately a weaker language for expressing library semantics. You can write libraries in C++ that cannot be written in Rust, that encapsulate semantics that cannot be captured in Rust. C++ library writers do, routinely. The C++ Standard Library has many components that could not be coded in Rust, that make the language more powerful for all users.

This makes Rust easier to learn, but it limits the libraries you can use, having learned it, and limits the libraries you can write.

This is a difficult tradeoff for any language design. Haskell is more powerful, too, and also harder to learn and to use well. (At the same time, its lack of destructors also limits it in ways that Rust and C++ do not suffer.)

The OOP -- inheritance, and virtual functions -- is a niche feature that is sometimes useful, but can often be emulated well enough with function pointers.

Re:C++ the Good Parts (2014) by Ar-Curunir on Thursday October 01, 2020 @01:08PM (#24653450)
What libraries do you have in mind?
Re:C++ the Good Parts (2014) by ncmncm on Friday October 02, 2020 @08:35PM (#24668450)