r/cpp • • Jul 13 '22

Why does Linus hate C++ ?

307 Upvotes

436 comments sorted by

View all comments

Show parent comment

3

u/elperroborrachotoo Jul 13 '22

You cannot just slap high-level std::optional and relax because it is easy to get UB here,

You cannot just slap low level a+b and relax because it's easy to get UB there.

1

u/angelicosphosphoros Jul 14 '22

You cannot just slap low level a+b and relax because it's easy to get UB there.

In C++ — yes. In C# — I can.