I don't know, and shouldn't comment, but I do anyway because I'm opinionated as heck.
Datastructures are important for storing data.
Functions are important for manipulating data.
Just because they're both abou data, doesn't mean that they belong naturally together.
I personally find "moveEntity(player, x, y, z);" (and the implications) prettier than "player->move(x,y,z);"
Now, if only my C could have first-class functions, without any other consequences to the language or runtime, I'd be supper happy, but I'm sure there's some fundamental reason that's impossible.
Then again, I'm a pretty crappy software developer.
Datastructures are important for storing data. Functions are important for manipulating data.
Just because they're both abou data, doesn't mean that they belong naturally together.
I personally find "moveEntity(player, x, y, z);" (and the implications) prettier than "player->move(x,y,z);"
Now, if only my C could have first-class functions, without any other consequences to the language or runtime, I'd be supper happy, but I'm sure there's some fundamental reason that's impossible.
Then again, I'm a pretty crappy software developer.