Add support for classical OOP in Rust

It’s unlikely that OOP will be added to the core language, but some lower-level features that enable a crate-based OOP solution might be possible, with a sufficiently considered proposal.

You can implement the mechanics of a C++-style inheritance system with Rust generics, it just looks uglier and takes a bit more boilerplate. Given that, you should be able to write a crate that makes this style less cumbersome. If that crate becomes popular and/or demonstrates some shortcomings in Rust’s current feature set, you can use that experience to identify and support proposals for ways to improve the situation.

3 Likes