Re:Nim – Python-like statically-typed compiled language
by zelly on Sunday August 16, 2020 @11:23PM
(#24183555)
Rust by design tries to discourage you from using object-oriented patterns. Not saying you can't write games with it, but it'd look more similar to C than C++.
[ Parent
| on HN ]
Re:Nim – Python-like statically-typed compiled language
by jlokier on Monday August 17, 2020 @02:24PM
(#24190158)
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.