paul
paul

Reputation: 13471

Scalaz vs ReactiveX

I´ve been working for a couple years with ReactiveX extension in Java, but now I move to scala, and I´ve seen that many people use the extension ScalaZ to perform more functional programing in Scala.

Is there´s any differences to use ScalaZ extension, or just adapt reactiveX to Scala which I did and I know is playing nice with Scala?.

And after read this blog https://medium.com/@luijar/the-observable-disguised-as-an-io-monad-c89042aa8f31 I though the observable was working as a IO monad as in Scalaz

Regards.

Upvotes: 2

Views: 261

Answers (1)

Luka Jacobowitz
Luka Jacobowitz

Reputation: 23502

Scalaz and ReactiveX are completely orthogonal to one another.

Scalaz is focused on bringing Category theory à la Haskell to Scala. It brings tons of type classes with Monads and Monoids and other goodies.

ReactiveX on the other hand is more focused on bringing reactive programming concepts to the language. It comes with Observables and Observers.

You can even use RxScala in conjunction with Scalaz! There's a repo called RxScalaz providing some of the typeclass instances of Scalaz for RxScala. Check it out here: https://github.com/everpeace/rxscalaz

If you're happy with "only" using RxScala, then there's no "real" need to accomodate Scalaz into your project.

Upvotes: 4

Related Questions