4 ms·
I'm not sure you know what you're talking about here. If you want to see what OO-in-C might look like, look at golang's object model. You lose some bits of OO
by opless 8y ago
I'm not sure you know what you're talking about here.
If you want to see what OO-in-C might look like, look at golang's object model.
You lose some bits of OO design, but many folk just don't need/want them.
Exceptions, deep inheritance, etc.
Don't get me wrong, I'm well versed in C++/C#/Java, but you can quite easily paint yourself into a corner if you're not careful.
C programming requires much more careful thought, and that's probably why Linus isn't too keen on the OO crowd, as that's where, in his opinion, the sloppy programmers have wandered off to.
- staticassertion 8y agoWhy are you even talking about C let alone OO-in-C? > After a quarter century of OOP, including years with C++, I still do not understand why it exists or what problems it actually solves. This is what I was responding to.