I saw that a similar question has already been asked here: Why use subtypes instead of traits and duck typing?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Voices of experience - abstract types as classes or interfaces? | 4 | 654 | January 21, 2020 | |
Is it ok to write interfaces that require field access on subtypes? | 6 | 521 | May 8, 2023 | |
Why use subtypes instead of traits and duck typing? | 32 | 4295 | April 15, 2021 | |
Struct as subtype of multiple types | 8 | 3596 | December 30, 2020 | |
Why is it impossible to subtype a struct? | 29 | 10893 | January 23, 2019 |