• sugar_in_your_tea@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    9 months ago

    Precisely. I work in Python a lot, and almost all of our classes use mixins because there’s single inheritance rarely is that answer. And that’s basically just an abuse of inheritance and a trait system would probably be a better fit.