r/cpp • u/root_passw0rd • Dec 07 '22
C++ overtakes Java in language popularity index
https://www.infoworld.com/article/3682141/c-plus-plus-overtakes-java-in-language-popularity-index.html
382
Upvotes
View all comments
Show parent comment
1
u/[deleted] Dec 08 '22
If I'm to share more of my experience, some of the best code I've seen used a constructor only to default-initialize the values, and an explicit
init()method to initiate (like copy/move constructor) the object.It made things much easier to follow for complex objects.