Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Why do people say Rust follows the tradition of C++?

They mean the domain that Rust is in.

Before Rust there was only C or C++ for real time programming. C++ was an experiment (wildly successful IMO when I left it in 2001) trying to address the shortcomings of C. It turned out that too much of everything was in C++, long compile times, a manual several inches thick, huge executables. Some experiments turned out not to be a good idea (exceptions, multiple inheritance, inheritance from concrete classes....)

Rust is a successor in that sense. It draws on the lessons of C++ and functional programming.

I hope I live long enough to see the next language in this sequence that learns form the mistakes of Rust (there are a few, and it will take some more years to find them all)



Some of C++'s warts are still available in Rust, though, such as long compile times. Additionally it encourages using a lot of dependencies, too, just like npm does.

Anyways, I dislike C++, it is too bloated and I would rather just use C.


It was no experiment at all, it was Bjarne Stroustroup way to never ever repeat his downgrade experience from Simula to BCPL, after he started working at Bell Labs and was originally going to have to write a distributed systems infrastructure in C.

Also there have been alternatives to C and C++, even if they tend to be ignored by most folks.


Bjarne Stroustroup describes it as experimental. At least he used to back when I cared a lot


I am quite sure that isn't the story as described on either "Design and Evolution of C++", or "C++ ARM", as owner of those books.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: