| ▲ | konstmonst 4 days ago | ||||||||||||||||||||||
std::indirect looks for me like another pointless c++ thing that already works with forward pointer declaration. You can add it to another ton of pointless things C++ adds without fixing the old ones. The issue with c++ is that it is so big, that everyone uses some kind of dialect of it and the fancier it gets, the less readable it becomes and the more magic happens behind the curtains. A developer of a C++ codebase now has to learn a specific meta language of this codebase. Fuck that, I have enough languages and their idiosynchronies to remember for my work now. After using Go for a pair of years returning to C++ is like coming back to a big archaic mess. I'll just go learn Rust instead and forget all those new useless C++ templates like std::indirect | |||||||||||||||||||||||
| ▲ | wwind123 4 days ago | parent | next [-] | ||||||||||||||||||||||
I think it's kind of awkward either way. The standard committee keeps adding new features to the language to address common pain points in the industry. But many people don't have that much time to learn the new features, and hates it when seeing something in the code but can't intuitively understand what it's doing. I once witnessed a 10+ year C++ coder (that had been immersed in some old C++ code base for many years) seeing a piece of C++14 code for the first time -- he said it reads like an entirely different language, not the C++ he's familiar with at all. | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | feelamee 4 days ago | parent | prev | next [-] | ||||||||||||||||||||||
> std::indirect looks for me like another pointless c++ thing that already works with forward pointer declaration. You can add it to another ton of pointless things C++ adds without fixing the old ones. For me your comment seems pointless, because std::indirect have a precise and clear problem which it solves. And this is totaly not a "hackery fix of language drawback". In this case language works as intended and std::indirect just close the gap for facility which is still would be written by hands, if there is no std::indirect. | |||||||||||||||||||||||
| ▲ | kzrdude 4 days ago | parent | prev [-] | ||||||||||||||||||||||
Part of the problem is that features are not added fully This here should not need to happen: > document that moved-from objects cannot be used It's moved from, so of course it cannot be used. Shouldn't have to add an assertion in every method to guard a fundamental invariant. | |||||||||||||||||||||||