These are all optional features of C++. Listing optional features isn't really a strong argument. Any language in a kernel is restricted or modified to fit that environment.
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).
8
u/top_logger Jul 13 '22
OOP, exceptions and bad design/reputation of STL.
As system software Engineer I am agree with him. At least partly. :).