All support for OOP would vanish overnight if people realized you can do all the important OOP stuff using C structs.
All support for OOP would vanish overnight if people realized you can do all the important OOP stuff using C structs.
This makes no sense to me.
By that logic, it would be difficult for me to create a scheduling system for classes being taught in factories with OOP, which it's not.
I didn't mean to say it's an earth-shattering obstacle. Just one minor additional nitpick to add to the gigantic pile of problems caused by OOP.
Am I an idiot for not knowing for sure this is a joke, or is the poster an idiot for not intending a joke?
I'm so confused...
Imagine you had a program involving, say, chairs. It has things called chairs, which you pass around to functions which take chair arguments. Suddenly, the next version of the language comes out and now "chair" is a reserved keyword, and all your code is broken. To fix it, you have to go through your whole codebase and rename all your "chair"s to "ChairStruct" or "_chair" or something.
I didn't say it was a major world-stopping difficulty. It's just one additional nitpick against OOP for games (added to an already gigantic stack of much bigger problems caused by OOP).
Such as having a safe, leak-proof string type? I think not.
If I see a declaration like "Foobar baz;" I don't know which of "baz.boo", "baz->boo" or "baz[x]" are syntactically valid at a glance.
Dunno if that's a huge deal but it's all I came up with.