News for hackers. Stuff that matters.
Re:Escape from systemd by nithinm on Wednesday June 14, 2017 @10:54AM (#14553169)
why the c++ hate in comments? because of the memory leaks?
Re:Escape from systemd by oneplane on Wednesday June 14, 2017 @11:32AM (#14553455)
because of the hidden magic. Linus has a great message on a mailing list somewhere on this. Basically it boils down to: don't have hidden magic in important OS parts, it's bad and helps nobody except for people that explicitly want to use c++.
Re:Escape from systemd by Santosh83 on Wednesday June 14, 2017 @12:19PM (#14553769)
The crux of the issue I believe is C++ can lead a bewildering mess of coding styles and abstractions, making it difficult for the thousands of people working on the kernel to grasp each other's code. This would be mitigated to a large extent by using the simpler C, hence the rule.

C++ needs a lot more discipline and thought if you don't want unmaintainable code years down the line. Ironic given that abstractions introduced by C++ are partly to make code more efficient to write, extend and maintain.

Re:Escape from systemd by antientropic on Wednesday June 14, 2017 @12:22PM (#14553794)
What "hidden magic"?
Re:Escape from systemd by marcosdumay on Wednesday June 14, 2017 @01:07PM (#14554140)
A C++ line does way more things than a similar looking C line. The developer may not be aware of all those extra things.