The features C++ offers are not useful to him. And that makes sense for an operating system.
For instance, templates are usually only useful for applications one level above. Doing what Eigen does with expression templates in C is almost impossible. On the other hand, templates are not useful to develop a driver and might even hide what's really happening at a lower level.
It doesn't mean it's bad for everyone. It's just not useful to him. Many other C++ features are optional and many C++ programmers don't use them either.
I don't think templates are trouble. They're just not as useful in a kernel as they are in other applications. They could be "nice", but they're not necessary and, depending on the case, not worth reviewing code with the extra complexity to C programmers that C++ programmers won't even notice. A queue is a great example of something any reasonable C programmer is able to write blindfolded without templates.
3
u/FreitasAlan Jul 13 '22
The features C++ offers are not useful to him. And that makes sense for an operating system.
For instance, templates are usually only useful for applications one level above. Doing what Eigen does with expression templates in C is almost impossible. On the other hand, templates are not useful to develop a driver and might even hide what's really happening at a lower level.
It doesn't mean it's bad for everyone. It's just not useful to him. Many other C++ features are optional and many C++ programmers don't use them either.