4 ms·
Having spent some time examining both Linux (written in C) and the Haiku kernel (written in C++) I'm far from clear that C++ is even "marginally better". More c
by tialaramex 6y ago
Having spent some time examining both Linux (written in C) and the Haiku kernel (written in C++) I'm far from clear that C++ is even "marginally better". More complicated is worse right?
A kernel like Linux invariably develops its own idiom that I think probably has more influence than any of the C++ syntactic sugar that you'd be allowed to use in that environment.
Do you have an example in mind of something you wish people did in Linux that they'd likely do with a restricted C++ dialect but not C?
- ncmncm 6y agoTo suggest that C++ is about "syntactic sugar" only demonstrates that you have no comprehension of the topic. C++ is complex because the problems people need it for are complex. C++ enables capturing semantics in libraries that cannot be expressed in any other language. There are reasons why C++ is used, almost exclusively, in the most challenging fields. It will not be easy for you to understand those reasons, because you will need to learn a great deal first. But having learned, if you do, you will understand why it would be foolish to attempt those tasks in a lesser language, and you will regret having used C where it has so limited you.