3 ms·
I mean, I just don't think this is true. All the most mature entity-component frameworks are built in C++. C++ is one of the most flexible languages, ever. OOP
by consteval 2y ago
I mean, I just don't think this is true. All the most mature entity-component frameworks are built in C++.
C++ is one of the most flexible languages, ever. OOP is a very tiny part of C++. You can 100% do data-oriented designs. And most and engines, do!
> if you're not doing that, you're kinda back to C-like
I don't understand how you can believe this. Maybe you don't have the C++ experience.
You have higher order functions, you have templates, you have compile-time programming. Hell, C++ has higher-kinded types - even Rust's type system can't do that!
C++ is very convenient to program in and very powerful. That's why it's used for games and will continue to be used for games. Rust is not more powerful, in any ways, in that regard. It can do the same shit, but with more headache. Usually that's worth it, but not for video games.