Hacker News new | ask | show | jobs
by s_baby 4054 days ago
A formal standard that has undefined behavior and is apparently difficult to implement a compiler for. It seems C++ is popular for mission critical software despite its standards.
1 comments

You have to be a little smart about C++. Avoid using anything dynamic (including exceptions, dynamic casting, etc).
Basically, avoid using C++, except for <insert list of features here>.

The way Qt does is actually quite pleasant to work with, but they avoid most language features and roll their own (QObject, I'm looking at you), even including their own preprocessor.

C++ gives you more than enough rope to hang yourself. Like a chainsaw, it's very powerful, but also extremely dangerous.

It's sad they don't teach C++ properly any more. The stuff I see leaking out onto Stack Overflow from courses is shamefully bad.

A funny statement considering how the author was lamenting the lack of exceptions in Rust :)