• nous@programming.dev
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    Lots of people equate OOP with inheritance, and I think that does a disservice to OOP code style in general. The original definitions of OOP had nothing to do with inheritance at all and this relationship was only popularized by a few languages (which others then copied due to aggressive marketing).

    IMO the more important parts of OOP that are still useful are encapsulation and message passing which can be done in languages without inheritance.

    I would caution against throwing out a paradigm before of one aspect of of that languages added onto it after the fact.