tour_of_rust icon indicating copy to clipboard operation
tour_of_rust copied to clipboard

Rust and OOP

Open bugadani opened this issue 3 years ago • 0 comments

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.

bugadani avatar Aug 12 '20 09:08 bugadani