Functional Programming vs. Object Oriented Programming - eviltoast
    • Pipoca@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      10 months ago

      Yeah, OO and FP aren’t really opposed. FP is opposed to imperative programming.

      That said, most FP languages give you a slightly different set of tools to use. Algebraic data types and typeclasses are really, really nice.

      Honestly, working in Haskell or rust, you don’t really miss the fact that you have to jump through hoops to get traditional OO objects. There’s just not really many cases where you need them.