Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does the Cats library in Scala relate to scalaz?

How does the Cats library relate to scalaz? The Cats project mentions it is descended from scalaz.

like image 656
user2726995 Avatar asked Apr 25 '15 20:04

user2726995


People also ask

What is cats in Scala?

Cats is a library which provides abstractions for functional programming in the Scala programming language. Scala supports both object-oriented and functional programming, and this is reflected in the hybrid approach of the standard library.

Which Scala library is used for functional programming?

Currently, the cats library and its ecosystem is the cornerstone of functional programming in Scala. For many, they will be the first choice when choosing stack for the new functional project.

What is cat effect?

Cats Effect is a high-performance, asynchronous, composable framework for building real-world applications in a purely functional style within the Typelevel ecosystem.


1 Answers

I would like to keep this from getting too political*, but cats is for all intents and purposes scalaz. It has not reached full parity as of yet, but keep in mind it was only created a few months ago. The goal is for it to be a more pragmatic approach and more democratic when it comes to its evolution. So, naming of operators and classes is hopefully going to be a little more straightforward, as well as it has no qualms with using mutable data within a method if it means better performance. Last, they are HOPING to have better documentation....all of this means that it may end up becoming a replacement for scalaz with a better beginner's approach for those not embroiled in the math world. If you want a fuller answer, then maybe head over to their gitter board and Erik (non) could answer it himself :)

*The gist is that scalaz has some social baggage with it that causes a number of big names to shy away from using and/or contributing.

like image 152
Justin Pihony Avatar answered Oct 18 '22 03:10

Justin Pihony