4 ms·
>more modern and less dangerous language than most people think Compared to what? Itself from 20 years ago? That's great, but not nearly enough. Cpp just has S
by Xeamek 3y ago
>more modern and less dangerous language than most people think
Compared to what? Itself from 20 years ago? That's great, but not nearly enough.
Cpp just has SO MUCH FRICTION that it's simply not worth it to deal with it.
Maybe if you have 20yrs of cpp experience and carved out a specific way for yourself to avoid all of it while still being productive... But that's not really an argument.
And sure, there are still some cases when the alternatives aren't ideal either (ie. Rust also having friction, especially in domain like games, or higher level languages being too slow).
But cpp has so much downsides I don't see why should one ever default into choosing cpp, unless you REALLY care about the benefits it brings.
But those upsides are usually external (ie. ecosystem), rather then features of the language itself
https://bitbashing.io/std-visit.html https://bitbashing.io/std-visit.html
- marcosdumay 3y ago> and carved out a specific way for yourself to avoid all of it while still being productive I believe such person exists when I see one. All that I see around are people claiming they did that, while ignoring some huge issue with their style that inserts some really nasty bugs on their software. Instead, the only C++ code that works out there is created by committee and peer-reviewed, so that different styles compensate each other.
- geertj 3y ago> I believe such person exists when I see one. All that I see around are people claiming they did that, while ignoring some huge issue with their style that inserts some really nasty bugs on their software. The real question is, of 100 bugs in a real-world application, how many were caused or at least influenced by the language, and how many are application level errors. In my practical experience bugs due to C++ behavior have just not been a thing. Maybe your world is different.