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 | |
---|---|---|---|---|
Merging composite types - multiple inheritance of fields/mixins | 3 | 854 | April 21, 2018 | |
[ANN] ObjectOriented.jl (renamed from TyOOP.jl), complete OOP support | 31 | 5340 | July 15, 2022 | |
Tutorials/books on C++ Object Oriented methodology to Julia Multiple Dispatch | 13 | 998 | December 11, 2023 | |
Inherit.jl | 16 | 1054 | May 22, 2023 | |
Is it ok to write interfaces that require field access on subtypes? | 6 | 504 | May 8, 2023 |