• kronicmage@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year 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
      0
      ·
      1 year 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.