Although I think that not having exceptions and inheritance are really big lackings, the thing is that there's such an anti-OOP backlash these days that large numbers of people will argue that Rust not having those are good things. I don't agree but lots of people would.
They do have generics. Not as extensive as C++, but this is one area where I'm no the other side of the fence and think that C++ has gone a bit over the edge on templates, meta-programming and compile time evaluation stuff. I'm not sure I'd want Rust to try to compete on that front.
For some reason many people believe that the main problem of C++ is "too many features", while it's exactly the opposite - a desperate lack of them.
Templates have become what they have become not because templates are bad, but because there was nothing better for metaprogramming at that time, but demand existed.
If there's a demand, but no supply, people will always find a way, but it might get ugly.
"It ain't stupid if it works" is real and when I look at all these new languages chopping off vital parts from the start only because someone abused them elsewhere, I know that they're doomed to repeat the history.
24
u/AlexAlabuzhev Dec 07 '21
Without exceptions, templates, inheritance?
Good luck with that.