News for hackers. Stuff that matters.
Re:All Programming Philosophies Are About State by irrational on Tuesday February 07, 2023 @01:08AM (#34689334)
Isn’t OOP a subset of imperative programming and functional a subset of declarative programming?
Re:All Programming Philosophies Are About State by EugeneOZ on Tuesday February 07, 2023 @01:16AM (#34689400)
You can be very declarative with OOP.
Re:All Programming Philosophies Are About State by seanhunter on Wednesday February 08, 2023 @12:53AM (#34704639)
Not really. For example ocaml allows oop in a functional programming language.

OOP is about encapsulation of data and algorithms which deal with that data in logical units (objects) and allowing certain operations eg inheritance, polymorphism (sometimes) etc over those objects. It can be declarative or imperative.