by makecheck · 17y ago · 0 comments
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.
No comments yet.