Writing kernel modules in Haskell
Writing kernel modules in Haskell
Posted Sep 14, 2009 0:32 UTC (Mon) by bjacob (guest, #58566)In reply to: Writing kernel modules in Haskell by cesarb
Parent article: Writing kernel modules in Haskell
That said, if we discuss why C++ isn't used throughout the kernel --- I understand your point. One remark though: about your first paragraph, one might turn the argument upside down and say that C is evil because a function named print_hello() may actually do a lot of malloc's and send a network packet too ;) The difference between C++ and C here is that functions in C++ may appear is more various forms than in C (operators, constructors, etc). It's really a matter of knowing what to expect: an experienced C++ programmer will understand spontaneously when an operator+ is likely to have to allocate memory for the result. Which takes us back to what is really Linus' best argument against C++ throught the kernel, and to your last paragraph... in other words, we agree.
