Raku / book

Using Raku – an unfinished book about Raku
https://perl6book.com/
283 stars 49 forks source link

sec 5.6 - Inheritance - add a forward reference to roles #79

Open hbaragar opened 11 years ago

hbaragar commented 11 years ago

The first sentence of section 5.6 is:

Object Oriented Programming provides the concept of inheritance as one of the mech- anisms to allow for code reuse.

which is fine, but my understanding is that roles are the preferred mechanism for code re-use in perl6. As such, I think that roles should be mentioned in this paragraph (with a forward reference to the Roles chapter). Furthermore, there should be a discussion (possibly in a side bar) of the differences between inheritance and roles, and when to use each.