by mnm1 · 8y ago · 0 comments
Abstract Syntax Trees for language translation is another problem where OO is a great choice.
Simulation is another good fit.
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.
> 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.