Re:Why does C++ think my class is copy-constructible when it...
by addaon on Tuesday June 10, 2025 @12:36PM
(#44238791)
Yeah. C++11 was very much a new language “on top of” C++ — but it was a so much better language that learning it was a joy, and using anything predating it would be crazy. The minor tweaks since then are at times visually stunning (and not always in a good way), but are in the end quite minor, and can be safely ignored.
[ Parent
| on HN ]
Re:Why does C++ think my class is copy-constructible when it...
by rich_sasha on Tuesday June 10, 2025 @03:47PM
(#44240687)
Yeah, I'm not saying these are bad changes! Only that it's so changed that I cannot read modern non-noddy C++, having been previously at least conversational, maybe fluent in it.
Re:Why does C++ think my class is copy-constructible when it...
by bennettnate5 on Tuesday June 10, 2025 @07:31PM
(#44242653)
The frustrating thing with layer-cake languages like C++ is that it can technically have all the ergonomic APIs that make life nice to write, yet have all this cruft and esoteric edge-case behavior that makes it so, so hard to read. I can't safely ignore features in C++ that others are using when I'm evaluating the correctness and security implications of already written code. And barring a strictly enforced (e.g. mandatory lint before merging) coding convention that bars all the nasty sharp points and legacy APIs, even a new project will gradually accrue the bad bits from devs who are used to using C++ that way.
Re:Why does C++ think my class is copy-constructible when it...
by Night_Thastus on Wednesday June 11, 2025 @10:29AM
(#44248014)
All languages that are sufficiently widely used eventually become 'layer-cake' languages.
It's inevitable once you have multiple big groups of people with very different needs. And once language design and best practices has evolved from where it was when the language was originally developed.
The only ones that escape this problem aren't widely used enough to have much demand for new features or changes.