I think its probably a pretty similar use case, just a slightly different way to go about it. Sometimes to me the lines get pretty blurry between “does Bar have a Foo or is Bar a modified kind of Foo” and this package is if you’re leaning the latter. For the former, if you do want Bar to behave like a Foo in some scenarios, you will probably still need something like “delegation” (I found this thread informative) so in some sense this package takes the place of those if you choose to go this route.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Inheritance in Julia | 11 | 14931 | September 1, 2017 | |
Merging composite types - multiple inheritance of fields/mixins | 3 | 867 | April 21, 2018 | |
Workaround for traditional inheritance features in object-oriented languages | 40 | 10216 | November 14, 2017 | |
OOP in Julia, inherit from parametric composite type | 4 | 2165 | February 2, 2017 | |
How to enforce the fields to be inherited? | 8 | 1094 | February 12, 2019 |