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 | 14899 | September 1, 2017 | |
Merging composite types - multiple inheritance of fields/mixins | 3 | 859 | April 21, 2018 | |
Structure inheritance | 6 | 255 | August 29, 2024 | |
Composition and inheritance: the Julian way | 133 | 40355 | May 14, 2024 | |
Generate a (mutable) struct which inherits others | 12 | 2634 | April 3, 2023 |