3 ms·
I like Elixir and Erlang so agree with the the typical arguments against OOP, but I actually think value-based (as opposed to reference based) OOP works quite w
by bmitc 6y ago
I like Elixir and Erlang so agree with the the typical arguments against OOP, but I actually think value-based (as opposed to reference based) OOP works quite well and jives with functional programming. The best examples of this, that I know of, are LabVIEW, with its dataflow and value-based OOP that includes interfaces, and F#’s object programming, where immutable types such as records and discriminated unions can implement interfaces.
- JoeyJoJoJr 6y agoI rarely see points like your’s raised (reference based versus value based) in the OOP vs FP debate, but these nuanced points really play a big role in the ability to produce quality code. I have constantly gone back and forth on my opinion on OOP vs FP, and it mostly comes down discovering an expressive feature of a new language tipping me back to the other side. Using an OOP language with structural typing was one of these instance. Structural typing isn’t really an OOP thing, but that highlights how blurry the lines can actually be as to what is considered as OOP vs FP.