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.
I’ll just stick them together.
Signed, a Scala programmer.
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.
Yeah, me too.
Signed, an F# programmer.
Slightly jealous of the F#. Similar set of compelling features minus the JVM.
I’m really glad c# is absorbing more and more functional stuff.
That is nice for when C# is mandated, but it’ll never replace F#
I feel in reality that statement is backwards hehe