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