• Valmond@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    1
    ·
    1 day ago

    Non typed inheritance, what could go wrong eh. You can just ‘add’ a function to a class dynamically in python, that is so bad.

    Done any C++ classes & inheritance?

    • tatterdemalion@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      It was actually typed. Python had type annotations at the time.

      I only wrote C++ very early in my career so I don’t remember much, but I’m sure I at least tried some inheritance in toy games I would write. All of that code was trash though by my standards today.