Well if you take his anger filled rants seriously, these features make cpp programmers bad at programming and so I'm order to keep cpp programmers out of the kernel he won't use cpp.
Really this is more of a statement in the heat of the moment (or email), but what's the point in having the language when you don't want those optional features.
Well if you take his anger filled rants seriously, these features make cpp programmers bad at programming and so I'm order to keep cpp programmers out of the kernel he won't use cpp.
A lot of this was like 15 years ago. C++ is a different language these days. And also Linus has gone to an anger management class or something for a few months in there. And then he was fine with Rust (given certain conditions).
I suspect a concentrated push for C++ in the kernel would go much differently today (on the other hand it doesn't matter like it would have 15 years ago) due to the changes to the people and language.
but what's the point in having the language when you don't want those optional features.
Because there are plenty of other useful features that C doesn't have. Like automatic scoped de-allocation (a reason rust pushed hard!), or templates (generic/traits/more), or just like non-virtual methods (not really OOP to be clear, that's just some nice syntax).
I honestly don't think it would go very far at all, mainly on the precedent of not allowing it before due to its complexity and tendency to introduce bad/convoluted code. Besides if it was allowed, some ass would try introduce a class/OOP and Linus would probably have a stroke (templates would also probably make him blow his top).
Eh, templates being used as type safe macros are obviously better in a lot of cases (like copy pasting numbers into them). I think that would be a win.
But to be clear I suspect it would go just as far as Rust is if people cared enough to push for it, but I don't think people care about it as much anymore. C++ is pretty established now.
-7
u/[deleted] Jul 13 '22
Well if you take his anger filled rants seriously, these features make cpp programmers bad at programming and so I'm order to keep cpp programmers out of the kernel he won't use cpp.
Really this is more of a statement in the heat of the moment (or email), but what's the point in having the language when you don't want those optional features.