tour_of_rust
tour_of_rust copied to clipboard
Rust and OOP
https://github.com/richardanaya/tour_of_rust/blob/84568bf70bba4b2702eb509867d828def86295c9/lessons/en/chapter_7.yaml#L29
According to the book Rust can be thought of both OOP and not OOP. I would argue Rust supports OOP, except instead of inheritance (which has it's own disadvantages, for example it's easy to create tightly coupled type hierarchies that are hard to maintain and extend), Rust supports composition. I think this lesson could use some clarification in some way.