• Zagorath@aussie.zone
    link
    fedilink
    arrow-up
    0
    ·
    10 days ago

    Nothing wrong with classes in functional programming though. Just return a new instance of the class from your method, rather than mutating an existing instance.

    • xmunk@sh.itjust.works
      link
      fedilink
      arrow-up
      2
      ·
      10 days ago

      Javascript:

      I heard you like mutating class data so I’m mutating the data you can put in your class data, dawg.

    • Amon@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      10 days ago

      Classes are just another way to define an object. Heck even Lisp has objects!