Hacker News new | ask | show | jobs
by stingraycharles 656 days ago
Don’t forget RAII and CRTP (Curiously Recurring Template Pattern).

As someone who has extensive experience in C++, Haskell, and Rust, I can confidently say that none of them is simple, it’s just that C++ has a mountain of legacy / technical debt that Rust has to deal with. If C++ were to be invented today, it would look a lot more like Rust.

1 comments

> If C++ were to be invented today, it would look a lot more like Rust.

I'm not sure about this, because the world without C++ would have been quite different from today. The main complication comes from the fact that C++ was considered a much higher-level language than today, so its absence would have made other alternatives evolve differently.