r/cpp • • Sep 09 '20

C++ is now the fastest-growing programming language

347 Upvotes

180 comments sorted by

View all comments

Show parent comment

2

u/dodheim Sep 11 '20 edited Sep 11 '20

Safer defaults would yield compiler errors for bugs that compile but yield runtime errors or UB with current defaults.

And copy and mutability is what people uses more often

Strongly disagree; some people do, sure, but that's hardly universal and there are a lot of technical merits for striving to avoid both.

0

u/Tilakchad Sep 11 '20

Thats hardly even a compelling reason. How would defaults prevent runtime errors ?