3 ms·
Interesting, I hadn't thought of Rust as discouraging object orientation particularly. But then, I think of the Linux kernel as object-oriented C in places. I
by jlokier 6y ago
Interesting, I hadn't thought of Rust as discouraging object orientation particularly. But then, I think of the Linux kernel as object-oriented C in places.
If you look at Unity, although the games are written in C#, there is a heavy emphasis on mixins for giving functionality to game objects, rather than inheritance or interfaces.
Between mixins and the ECS pattern, I think Rust's trait-oriented style looks aligned with that trend.