C++ is a bad programming language
@sir its just c but with classes.
Oh btw. you can't throw exceptions in destructors, that'd be UB.
Also, for reasons I forgot, your public API shouldn't throw any exceptions.
So the standard library doesn't throw exceptions and require you to check error codes. Well, some parts do that. Other parts do throw exceptions.
Also, did I mention templates?
They need to be defined in the same compilation units in which they're used.
Including all method implementations.
So that means you define them in headers, whose content gets copy-pasted.by means of #include into every compilation unit.
Which means every template is compiled N times, making builds awfully slow.
@sir C++ is a bad programming language BY DESIGN
@sir Starting as a preprocessor to C didn't help. Several times I tried to like it, but... no. It never took.
@sir how did you get to that realization?
@morenonatural I knew this a long time ago
whats a good programming language
@jaxter184 good question
@sir No, it's a good language because it slows people down, which means it causes them to write less bad software than they otherwise would have been able to.
@sir couldn't agree more
"C++ is a bad programming language" - everyone on c++ committee, while taring into each others throats to push their proposals
"Our language is the perfect language of god" - any other language designer
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!