4 ms·
This is partly just an argument against how people use the tool (C++), though the tool itself does deserve some of the "credit" for any inelegant code. I can c
by makecheck 17y ago
This is partly just an argument against how people use the tool (C++), though the tool itself does deserve some of the "credit" for any inelegant code.
I can certainly imagine, and have seen, some insane C++. But, there are things in C++ that even a kernel developer could love.
Probably the simplest example is constructors and destructors. They are a useful for writing clean setup/teardown blocks, and allow data structure initialization errors to be completely avoided. Sure, you could put horrible things into constructor code, and use 10 levels of multiple inheritance to create constructor hell; but if you don't do that, it's really not that magical.