On Friday, 22 September 2023 at 12:53:28 UTC, Imperatorn wrote:On Friday, 22 September 2023 at 03:33:08 UTC, Vitaliy Fadeev wrote:[...]What I mean is, why not use other language constructs like mixins or inheritance with some mapping for example?Can you give an example?
You're basically just describing polymorphism. I can post an example tomorrow, it's midnight here now.