• kronicmage
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    Objects are just the poor man’s closures. I really hate it when libraries like urllib impose a multi-class object nesting paradigm when a simple multi argument function would be better in every way

    • Baldur Nil@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

      Yeah but sometimes you want something that has mutable state over time, and it’s easier to pack it into a self-contained thing.